You are here

public function HookEventDispatcherManagerSpy::setEventCallbacks in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/HookEventDispatcherManagerSpy.php \Drupal\Tests\hook_event_dispatcher\Unit\HookEventDispatcherManagerSpy::setEventCallbacks()
  2. 3.x tests/src/Unit/HookEventDispatcherManagerSpy.php \Drupal\Tests\hook_event_dispatcher\Unit\HookEventDispatcherManagerSpy::setEventCallbacks()

Set event callbacks.

Parameters

array $eventCallbacks: Associative event callbacks array.

File

tests/src/Unit/HookEventDispatcherManagerSpy.php, line 80

Class

HookEventDispatcherManagerSpy
Class HookEventDispatcherManagerSpy.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit

Code

public function setEventCallbacks(array $eventCallbacks) : void {
  $this->eventCallbacks = $eventCallbacks;
}