function DependsOnModuleMethodHooks::withDependency

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/hook_collector_depends_test/src/Hook/DependsOnModuleMethodHooks.php \Drupal\hook_collector_depends_test\Hook\DependsOnModuleMethodHooks::withDependency()

Implements hook_with_dependency().

Attributes

#[Hook('with_dependency')] #[HookDependsOnModule('aaa_hook_collector_test')]

File

core/modules/system/tests/modules/hook_collector_depends_test/src/Hook/DependsOnModuleMethodHooks.php, line 18

Class

DependsOnModuleMethodHooks
Test Hooks with a dependency on the sole method.

Namespace

Drupal\hook_collector_depends_test\Hook

Code

public function withDependency() : string {
  return __METHOD__;
}

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