class DependsOnModuleMethodHooks

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/hook_collector_depends_test/src/Hook/DependsOnModuleMethodHooks.php \Drupal\hook_collector_depends_test\Hook\DependsOnModuleMethodHooks

Test Hooks with a dependency on the sole method.

Hierarchy

Expanded class hierarchy of DependsOnModuleMethodHooks

1 file declares its use of DependsOnModuleMethodHooks
HookCollectorPassTest.php in core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php

File

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

Namespace

Drupal\hook_collector_depends_test\Hook
View source
class DependsOnModuleMethodHooks {
  
  /**
   * Implements hook_with_dependency().
   */
  public function withDependency() : string {
    return __METHOD__;
  }

}

Members

Title Sort descending Modifiers Object type Summary
DependsOnModuleMethodHooks::withDependency public function Implements hook_with_dependency().

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