class BMissingTargetAlter

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/HookOrder/bbb_hook_order_test/src/Hook/BMissingTargetAlter.php \Drupal\bbb_hook_order_test\Hook\BMissingTargetAlter

Contains alter hook implementations.

Hierarchy

Expanded class hierarchy of BMissingTargetAlter

See also

\Drupal\KernelTests\Core\Hook\HookAlterOrderTest::testReorderAlterMissingTarget()

2 files declare their use of BMissingTargetAlter
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/bbb_hook_order_test/src/Hook/BMissingTargetAlter.php, line 14

Namespace

Drupal\bbb_hook_order_test\Hook
View source
class BMissingTargetAlter {
  
  /**
   * Implements hook_test_ab_alter().
   */
  public function testABAlterReorderedFirstByXyz(array &$calls) : void {
    $calls[] = __METHOD__;
  }
  
  /**
   * Implements hook_test_ab_alter().
   */
  public function testABAlterRemovedByXyz(array &$calls) : void {
    $calls[] = __METHOD__;
  }
  
  /**
   * Implements hook_test_b_alter().
   */
  public function testBAlter(array &$calls) : void {
    $calls[] = __METHOD__;
  }
  
  /**
   * Implements hook_test_b_alter().
   */
  public function testBAlterReorderedFirstByXyz(array &$calls) : void {
    $calls[] = __METHOD__;
  }
  
  /**
   * Implements hook_test_b_alter().
   */
  public function testBAlterRemovedByXyz(array &$calls) : void {
    $calls[] = __METHOD__;
  }
  
  /**
   * Implements hook_test_b_subtype_alter().
   */
  public function testBSubtypeAlter(array &$calls) : void {
    $calls[] = __METHOD__;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.