function TestHookInvoke::hookInvokeSingleClassOne

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php \Drupal\hook_single_invoke\Hook\TestHookInvoke::hookInvokeSingleClassOne()

This hook returns a stdClass.

Attributes

#[Hook('custom_hook_invoke_class')]

File

core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php, line 71

Class

TestHookInvoke
Add four hook implementations for two hooks, one returns arrays one string.

Namespace

Drupal\hook_single_invoke\Hook

Code

public function hookInvokeSingleClassOne() : \stdClass {
  return new \stdClass();
}

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