class ProceduralHookScanStop
Defines a ProceduralHookScanStop attribute object.
This allows contrib and core to mark when a file has no more procedural hooks to be gathered. Any procedural hooks in the file should be placed before the function with this attribute. This includes all hooks that can be converted to object oriented hooks and also includes:
- hook_hook_info()
- hook_module_implements_alter()
- hook_requirements()
- hook_preprocess()
- hook_preprocess_HOOK()
Hierarchy
- class \Drupal\Core\Hook\Attribute\ProceduralHookScanStop
Expanded class hierarchy of ProceduralHookScanStop
18 files declare their use of ProceduralHookScanStop
- HookCollectorPass.php in core/
lib/ Drupal/ Core/ Hook/ HookCollectorPass.php - hook_collector_skip_procedural_attribute.module in core/
modules/ system/ tests/ modules/ hook_collector_skip_procedural_attribute/ hook_collector_skip_procedural_attribute.module - locale.batch.inc in core/
modules/ locale/ locale.batch.inc - locale.bulk.inc in core/
modules/ locale/ locale.bulk.inc - locale.compare.inc in core/
modules/ locale/ locale.compare.inc
File
-
core/
lib/ Drupal/ Core/ Hook/ Attribute/ ProceduralHookScanStop.php, line 20
Namespace
Drupal\Core\Hook\AttributeView source
class ProceduralHookScanStop {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.