public function ModifyHtmlEventTest::addExcludePath in Tome 8
Emulates the addExcludePath() listener.
Parameters
\Drupal\tome_static\Event\ModifyHtmlEvent $event: The modify HTML event.
File
- modules/
tome_static/ tests/ src/ Kernel/ ModifyHtmlEventTest.php, line 108
Class
- ModifyHtmlEventTest
- Tests modify HTML event class.
Namespace
Drupal\Tests\tome_static\KernelCode
public function addExcludePath(ModifyHtmlEvent $event) {
$event
->addExcludePath('/my-new-path');
$event
->addExcludePath('/my-new-path-again');
}