HookAttributeInvokeHook.php

Namespace

Drupal\hook_collector_hook_attribute\Hook

File

core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php

View source
<?php

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

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Test Hook attribute named arguments.
 */
class HookAttributeInvokeHook {
    
    /**
     * Implements hook_cache_flush().
     */
    public function __invoke() : void {
        // Set a global value we can check in test code.
        $GLOBALS['hook_invoke_method'] = 'hook_invoke_method';
    }

}

Classes

Title Deprecated Summary
HookAttributeInvokeHook Test Hook attribute named arguments.

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