core-modules/event-manager/src/EventManager.php
public function hook($event, callable $callback, $priority = 10)
    {
        $this->app->hook($event, $callback, $priority);
    }
public function hook($event, callable $callback, $priority = 10)
    {
        $this->app->hook($event, $callback, $priority);
    }
public function hook ( $ event , callable $ callback , $ priority = 10 ) { $ this -> app -> hook ( $ event , $ callback , $ priority ) ; }
Hook an event

@param string   $event    Event/Hook name
@param callable $callback Event handler
@param int      $priority 0 = high, 10 = low
Hook an event