aaa_hook_order_test.module

File

core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/aaa_hook_order_test.module

View source
<?php


/**
 * @file
 * Contains procedural hook implementations.
 */
declare (strict_types=1);
use Drupal\aaa_hook_order_test\Hook\ModuleImplementsAlter;

/**
 * Implements hook_test_hook().
 */
function aaa_hook_order_test_test_hook() : string {
    return __FUNCTION__;
}

/**
 * Implements hook_sparse_test_hook().
 */
function aaa_hook_order_test_sparse_test_hook() : string {
    return __FUNCTION__;
}

/**
 * Implements hook_procedural_alter().
 */
function aaa_hook_order_test_procedural_alter(array &$calls) : void {
    $calls[] = __FUNCTION__;
}

/**
 * Implements hook_procedural_subtype_alter().
 */
function aaa_hook_order_test_procedural_subtype_alter(array &$calls) : void {
    $calls[] = __FUNCTION__;
}

/**
 * Implements hook_module_implements_alter().
 */
function aaa_hook_order_test_module_implements_alter(array &$implementations, string $hook) : void {
    ModuleImplementsAlter::call($implementations, $hook);
}

Functions

Title Deprecated Summary
aaa_hook_order_test_module_implements_alter Implements hook_module_implements_alter().
aaa_hook_order_test_procedural_alter Implements hook_procedural_alter().
aaa_hook_order_test_procedural_subtype_alter Implements hook_procedural_subtype_alter().
aaa_hook_order_test_sparse_test_hook Implements hook_sparse_test_hook().
aaa_hook_order_test_test_hook Implements hook_test_hook().

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