You are here

public function HookEventDispatcherManagerSpy::setEventCallbacks in Hook Event Dispatcher 8

Same name and namespace in other branches
  1. 8.2 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 77

Class

HookEventDispatcherManagerSpy
Class HookEventDispatcherManagerSpy.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit

Code

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