TestInvalidHookCollectionHooks.php
Same filename in this branch
- 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php
- 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php
- 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php
Namespace
Drupal\oop_hook_theme_with_order\HookFile
-
core/
modules/ system/ tests/ themes/ HookCollector/ oop_hook_theme_with_order/ src/ Hook/ TestInvalidHookCollectionHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\oop_hook_theme_with_order\Hook;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\Core\Hook\Order\Order;
/**
* Contains hooks that will throw exceptions during collection.
*/
class TestInvalidHookCollectionHooks {
public function testHook(array &$calls) : void {
$calls[] = __METHOD__;
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TestInvalidHookCollectionHooks | Contains hooks that will throw exceptions during collection. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.