class AHooks

This class contains hook implementations.

By default, these will be called in module order, which is predictable due to the alphabetical module names. Some of the implementations are reordered using order attributes.

Hierarchy

  • class \Drupal\aaa_hook_order_test\Hook\AHooks

Expanded class hierarchy of AHooks

1 file declares its use of AHooks
HookOrderTest.php in core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php

File

core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/AHooks.php, line 19

Namespace

Drupal\aaa_hook_order_test\Hook
View source
class AHooks {
    public function testHook() : string {
        return __METHOD__;
    }
    public function testHookFirst() : string {
        return __METHOD__;
    }
    public function testHookLast() : string {
        return __METHOD__;
    }
    public function testHookAfterB() : string {
        return __METHOD__;
    }
    public function testBothParametersHook() : string {
        return __METHOD__;
    }

}

Members

Title Sort descending Modifiers Object type Summary
AHooks::testBothParametersHook public function
AHooks::testHook public function
AHooks::testHookAfterB public function
AHooks::testHookFirst public function
AHooks::testHookLast public function

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