class TestProfilerExtension
Same name in this branch
- 10 core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension
Same name in other branches
- 11.x core/modules/sdc/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension
- 11.x core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension
Twig extension to add a test node visitor.
Hierarchy
- class \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension extends \Twig\Extension\AbstractExtension
Expanded class hierarchy of TestProfilerExtension
2 string references to 'TestProfilerExtension'
- sdc_other_node_visitor.services.yml in core/
modules/ sdc/ tests/ modules/ sdc_other_node_visitor/ sdc_other_node_visitor.services.yml - core/modules/sdc/tests/modules/sdc_other_node_visitor/sdc_other_node_visitor.services.yml
- sdc_other_node_visitor.services.yml in core/
modules/ system/ tests/ modules/ sdc_other_node_visitor/ sdc_other_node_visitor.services.yml - core/modules/system/tests/modules/sdc_other_node_visitor/sdc_other_node_visitor.services.yml
2 services use TestProfilerExtension
- sdc_other_node_visitor.twig.extension.profiler in core/
modules/ sdc/ tests/ modules/ sdc_other_node_visitor/ sdc_other_node_visitor.services.yml - Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension
- sdc_other_node_visitor.twig.extension.profiler in core/
modules/ system/ tests/ modules/ sdc_other_node_visitor/ sdc_other_node_visitor.services.yml - Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension
File
-
core/
modules/ sdc/ tests/ modules/ sdc_other_node_visitor/ src/ Twig/ Extension/ TestProfilerExtension.php, line 11
Namespace
Drupal\sdc_other_node_visitor\Twig\ExtensionView source
class TestProfilerExtension extends AbstractExtension {
/**
* {@inheritdoc}
*/
public function getNodeVisitors() : array {
return [
new TestNodeVisitor(static::class),
];
}
/**
* Dummy function called when a Twig template is entered.
*/
public function enter() {
// NOOP.
}
/**
* Dummy function called when a Twig template is left.
*/
public function leave() {
// NOOP.
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestProfilerExtension::enter | public | function | Dummy function called when a Twig template is entered. |
TestProfilerExtension::getNodeVisitors | public | function | |
TestProfilerExtension::leave | public | function | Dummy function called when a Twig template is left. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.