class ModuleTestCompilerPass
Counts the number of times this compiler pass runs.
Hierarchy
- class \Drupal\module_test\ModuleTestCompilerPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Expanded class hierarchy of ModuleTestCompilerPass
File
-
core/
modules/ system/ tests/ modules/ module_test/ src/ ModuleTestCompilerPass.php, line 13
Namespace
Drupal\module_testView source
class ModuleTestCompilerPass implements CompilerPassInterface {
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container) : void {
if (!isset($GLOBALS['container_rebuilt'])) {
$GLOBALS['container_rebuilt'] = 1;
}
else {
$GLOBALS['container_rebuilt']++;
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ModuleTestCompilerPass::process | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.