function ThemeHookTest::testProceduralHookCollection
Tests that procedural hooks are collected and executed.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Theme/ ThemeHookTest.php, line 31
Class
- ThemeHookTest
- Tests low-level theme functions.
Namespace
Drupal\Tests\system\Kernel\ThemeCode
public function testProceduralHookCollection() : void {
$args = [];
\Drupal::theme()->alter('procedural', $args);
$this->assertEquals([
'Procedural theme hook executed.',
], $args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.