class AMissingTargetAlter
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/AMissingTargetAlter.php \Drupal\aaa_hook_order_test\Hook\AMissingTargetAlter
Provides hook implementations for testing the alteration of hooks.
Hierarchy
- class \Drupal\aaa_hook_order_test\Hook\AMissingTargetAlter
Expanded class hierarchy of AMissingTargetAlter
See also
\Drupal\KernelTests\Core\Hook\HookAlterOrderTest::testReorderAlterMissingTarget()
2 files declare their use of AMissingTargetAlter
- HookAlterOrderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Hook/ HookAlterOrderTest.php - XyzMissingTargetAlter.php in core/
modules/ system/ tests/ modules/ HookOrder/ xyz_hook_order_test/ src/ Hook/ XyzMissingTargetAlter.php
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ src/ Hook/ AMissingTargetAlter.php, line 14
Namespace
Drupal\aaa_hook_order_test\HookView source
class AMissingTargetAlter {
/**
* Implements hook_test_ab_alter().
*/
public function testABAlter(array &$calls) : void {
$calls[] = __METHOD__;
}
/**
* Implements hook_testASupertypeAlter().
*/
public function testASupertypeAlter(array &$calls) : void {
$calls[] = __METHOD__;
}
/**
* Implements hook_test_a_supertype_alter().
*/
public function testASupertypeAlterReorderedFirstForBSubtypeByXyz(array &$calls) : void {
$calls[] = __METHOD__;
}
/**
* Implements hook_test_a_supertype_alter().
*/
public function testASupertypeAlterRemovedForBSubtypeByXyz(array &$calls) : void {
$calls[] = __METHOD__;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.