class DeprecationTestHooks

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/deprecation_test/src/Hook/DeprecationTestHooks.php \Drupal\deprecation_test\Hook\DeprecationTestHooks

Implements hooks for the deprecation test.

Hierarchy

Expanded class hierarchy of DeprecationTestHooks

File

core/modules/system/tests/modules/deprecation_test/src/Hook/DeprecationTestHooks.php, line 12

Namespace

Drupal\deprecation_test\Hook
View source
class DeprecationTestHooks {
  
  /**
   * 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,
    ];
  }

}

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