module_handler_test_all1.module

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
  2. 8.9.x core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
  3. 10 core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module

File

core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module

View source
<?php


/**
 * @file
 * Test module.
 */
declare (strict_types=1);

/**
 * Returns an array to test nested merge in invoke all.
 */
function module_handler_test_all1_hook($arg) {
    return [
        $arg,
    ];
}

/**
 * Implements hook_module_implements_alter().
 */
function module_handler_test_all1_module_implements_alter(&$implementations, $hook) : void {
    if ($hook === 'order1') {
        // Run module_handler_test_all1 hooks after all other implementations.
        $group = $implementations['module_handler_test_all1'];
        unset($implementations['module_handler_test_all1']);
        $implementations['module_handler_test_all1'] = $group;
    }
}

Functions

Title Deprecated Summary
module_handler_test_all1_hook Returns an array to test nested merge in invoke all.
module_handler_test_all1_module_implements_alter Implements hook_module_implements_alter().

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