public function execute($hookName, array $context = [], $content = '')
    {
        $event = new EventAdapter($context, $content);
        $this->eventDispatcher->dispatch($hookName, $event);

        return $event->getContent();
    }
public function execute($hookName, array $context = [], $content = '')
    {
        $event = new EventAdapter($context, $content);
        $this->eventDispatcher->dispatch($hookName, $event);

        return $event->getContent();
    }
public function execute ( $ hookName , array $ context = [ ] , $ content = '' ) { $ event = new EventAdapter ( $ context , $ content ) ; $ this -> eventDispatcher -> dispatch ( $ hookName , $ event ) ; return $ event -> getContent ( ) ; }
Dispatches all listeners and filters related to a hook.

@param string $hookName Name of the hook to run
@param array  $context  Context in which the hook should run
@param string $content  Optional original content

@return mixed Content after transformation
Dispatches all listeners and filters related to a hook .