class DeprecationHookAttributeTestHooks

Implements hooks for the deprecation hook attribute test.

Hierarchy

Expanded class hierarchy of DeprecationHookAttributeTestHooks

File

core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php, line 12

Namespace

Drupal\deprecation_hook_attribute_test\Hook
View source
class DeprecationHookAttributeTestHooks {
    
    /**
     * Implements hook_deprecated_hook().
     */
    public function deprecatedHook($arg) : mixed {
        return $arg;
    }
    
    /**
     * Implements hook_deprecated_alter_alter().
     */
    public function deprecatedAlterAlterFirst(&$data, $context1, $context2) : void {
        $data = [
            $context1,
            $context2,
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
DeprecationHookAttributeTestHooks::deprecatedAlterAlterFirst public function Implements hook_deprecated_alter_alter().
DeprecationHookAttributeTestHooks::deprecatedHook public function Implements hook_deprecated_hook().

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