function CommonTestHooks::blockDrupalAlterFooAlter
Implements hook_TYPE_alter().
This is to verify that \Drupal::moduleHandler()->alter(array(TYPE1, TYPE2), ...) allows hook_module_implements_alter() to affect the order in which module implementations are executed.
File
-
core/
modules/ system/ tests/ modules/ common_test/ src/ Hook/ CommonTestHooks.php, line 56
Class
- CommonTestHooks
- Hook implementations for common_test.
Namespace
Drupal\common_test\HookCode
public function blockDrupalAlterFooAlter(&$data, &$arg2 = NULL, &$arg3 = NULL) {
$data['foo'] .= ' block';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.