/** * Initializes the controller before invoking an action method. * * Override this method to solve tasks which all actions have in * common. * * @return void * @api */ protected function initializeAction() { if ($this->settings['listenOnEvents']) { $eventNames = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->settings['listenOnEvents']); foreach ($eventNames as $eventName) { $this->hijaxEventDispatcher->connect($eventName); } } }