function TestHookRemove::hookDoNotRun
This hook should not be run because the next hook replaces it.
File
-
core/
modules/ system/ tests/ modules/ hook_test_remove/ src/ Hook/ TestHookRemove.php, line 18
Class
- TestHookRemove
- Add a hook here, then remove it with another attribute.
Namespace
Drupal\hook_test_remove\HookCode
public function hookDoNotRun() : string {
// This hook should not run.
return __METHOD__;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.