function ModuleTestCompilerPass::process
File
-
core/
modules/ system/ tests/ modules/ module_test/ src/ ModuleTestCompilerPass.php, line 18
Class
- ModuleTestCompilerPass
- Counts the number of times this compiler pass runs.
Namespace
Drupal\module_testCode
public function process(ContainerBuilder $container) : void {
if (!isset($GLOBALS['container_rebuilt'])) {
$GLOBALS['container_rebuilt'] = 1;
}
else {
$GLOBALS['container_rebuilt']++;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.