function DeprecationTestHooks::deprecatedHook

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/deprecation_test/src/Hook/DeprecationTestHooks.php \Drupal\deprecation_test\Hook\DeprecationTestHooks::deprecatedHook()

Implements hook_deprecated_hook().

Attributes

#[Hook('deprecated_hook')]

File

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

Class

DeprecationTestHooks
Implements hooks for the deprecation test.

Namespace

Drupal\deprecation_test\Hook

Code

public function deprecatedHook($arg) : mixed {
  return $arg;
}

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