DeprecationHookAttributeTestHooks.php

Namespace

Drupal\deprecation_hook_attribute_test\Hook

File

core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php

View source
<?php

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

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Implements hooks for the deprecation hook attribute test.
 */
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,
        ];
    }

}

Classes

Title Deprecated Summary
DeprecationHookAttributeTestHooks Implements hooks for the deprecation hook attribute test.

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