class TestInvalidHookCollectionHooks

Same name in this branch
  1. main core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_module\Hook\TestInvalidHookCollectionHooks
  2. main core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_order\Hook\TestInvalidHookCollectionHooks
  3. main core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_reorder\Hook\TestInvalidHookCollectionHooks
Same name and namespace in other branches
  1. 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_module\Hook\TestInvalidHookCollectionHooks
  2. 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_remove\Hook\TestInvalidHookCollectionHooks
  3. 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_order\Hook\TestInvalidHookCollectionHooks
  4. 11.x core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php \Drupal\oop_hook_theme_with_reorder\Hook\TestInvalidHookCollectionHooks

Contains hooks that will throw exceptions during collection.

Hierarchy

Expanded class hierarchy of TestInvalidHookCollectionHooks

File

core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php, line 13

Namespace

Drupal\oop_hook_theme_with_remove\Hook
View source
class TestInvalidHookCollectionHooks {
  public function testHook(array &$calls) : void {
    $calls[] = __METHOD__;
  }

}

Members

Title Sort descending Modifiers Object type Summary
TestInvalidHookCollectionHooks::testHook public function #[Hook('test_hook_alter')]
#[RemoveHook('test_hook_alter', self::class, 'testHook')]

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.