namespace Drupal\Core\Hook\Attribute

Same name in other branches
  1. 10 Drupal\Core\Hook\Attribute
Object name File name Summary
FormAlter core/lib/Drupal/Core/Hook/Attribute/FormAlter.php Hook attribute for FormAlter.
Hook core/lib/Drupal/Core/Hook/Attribute/Hook.php Attribute for defining a class method as a hook implementation.
HookAttributeInterface core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php Common interface for attributes used for hook discovery.
LegacyHook core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php Defines a LegacyHook attribute object.
LegacyModuleImplementsAlter core/lib/Drupal/Core/Hook/Attribute/LegacyModuleImplementsAlter.php Prevents procedural hook_module_implements_alter from executing.
Preprocess core/lib/Drupal/Core/Hook/Attribute/Preprocess.php Attribute for defining a class method as a preprocess function.
ProceduralHookScanStop core/lib/Drupal/Core/Hook/Attribute/ProceduralHookScanStop.php Defines a ProceduralHookScanStop attribute object.
RemoveHook core/lib/Drupal/Core/Hook/Attribute/RemoveHook.php Removes an already existing implementation.
ReorderHook core/lib/Drupal/Core/Hook/Attribute/ReorderHook.php Sets the order of an already existing implementation.
StopProceduralHookScan core/lib/Drupal/Core/Hook/Attribute/StopProceduralHookScan.php Defines a StopProceduralHookScan attribute object.

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