AMissingTargetHooks.php

Namespace

Drupal\aaa_hook_order_test\Hook

File

core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/AMissingTargetHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\aaa_hook_order_test\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Contains hook implementations.
 *
 * @see \Drupal\KernelTests\Core\Hook\HookOrderTest::testReorderMissingTarget()
 */
class AMissingTargetHooks {
  public function testABHook() : string {
    return __METHOD__;
  }
  public function testUnrelatedHookReorderedLastForHookB() : string {
    return __METHOD__;
  }
  public function testUnrelatedHookRemovedForHookB() : string {
    return __METHOD__;
  }

}

Classes

Title Deprecated Summary
AMissingTargetHooks Contains hook implementations.

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