HookAttributeNamedArgumentsHook.php

Namespace

Drupal\hook_collector_hook_attribute\Hook

File

core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.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 HookAttributeNamedArgumentsHook {
    
    /**
     * Implements hook_cache_flush().
     */
    public function flush() : void {
        // Set a global value we can check in test code.
        $GLOBALS['hook_named_arguments'] = 'hook_named_arguments';
    }

}

Classes

Title Deprecated Summary
HookAttributeNamedArgumentsHook Test Hook attribute named arguments.

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