Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HookManagerInterface.php

function HookManagerInterface::hook

Parameters

?Closure(object|string|null, array, ?string, string, ?string, ?int): (array|null|void) $preHook:

?Closure(object|string|null, array, mixed, ?Throwable): (mixed|void) $postHook:

2 methods override HookManagerInterface::hook()
ExtensionHookManager::hook in vendor/open-telemetry/api/Instrumentation/AutoInstrumentation/ExtensionHookManager.php
@phan-suppress PhanUndeclaredFunction
NoopHookManager::hook in vendor/open-telemetry/api/Instrumentation/AutoInstrumentation/NoopHookManager.php

File

vendor/open-telemetry/api/Instrumentation/AutoInstrumentation/HookManagerInterface.php, line 16

Class

HookManagerInterface

Namespace

OpenTelemetry\API\Instrumentation\AutoInstrumentation

Code

public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null) : void;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal