class CHooks
This class contains hook implementations.
By default, these will be called in module order, which is predictable due to the alphabetical module names. Some of the implementations are reordered using order attributes.
Hierarchy
- class \Drupal\ccc_hook_order_test\Hook\CHooks
Expanded class hierarchy of CHooks
3 files declare their use of CHooks
- AHooks.php in core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ src/ Hook/ AHooks.php - DHooks.php in core/
modules/ system/ tests/ modules/ HookOrder/ ddd_hook_order_test/ src/ Hook/ DHooks.php - HookOrderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Hook/ HookOrderTest.php
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ ccc_hook_order_test/ src/ Hook/ CHooks.php, line 17
Namespace
Drupal\ccc_hook_order_test\HookView source
class CHooks {
public function testHook() : string {
return __METHOD__;
}
public function testHookFirst() : string {
return __METHOD__;
}
/**
* This implementation is reordered from elsewhere.
*
* @see \Drupal\ddd_hook_order_test\Hook\DHooks
*/
public function testHookReorderFirst() : string {
return __METHOD__;
}
/**
* This implementation is removed from elsewhere.
*
* @see \Drupal\ddd_hook_order_test\Hook\DHooks
*/
public function testHookRemoved() : string {
return __METHOD__;
}
public function testBothParametersHook() : string {
return __METHOD__;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
CHooks::testBothParametersHook | public | function | |
CHooks::testHook | public | function | |
CHooks::testHookFirst | public | function | |
CHooks::testHookRemoved | public | function | This implementation is removed from elsewhere. |
CHooks::testHookReorderFirst | public | function | This implementation is reordered from elsewhere. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.