Pimcore\WorkflowManagement\Workflow\Manager::registerActionEvents PHP Метод

registerActionEvents() приватный Метод

Used by performAction to initialise events
private registerActionEvents ( $actionConfig )
$actionConfig
    private function registerActionEvents($actionConfig)
    {
        $this->registeredActionEvents = [];
        if (isset($actionConfig['events'])) {
            if (isset($actionConfig['events']['before'])) {
                $this->registeredActionEvents[] = \Pimcore::getEventManager()->attach('workflowmanagement.action.before', $actionConfig['events']['before']);
            }
            if (isset($actionConfig['events']['success'])) {
                $this->registeredActionEvents[] = \Pimcore::getEventManager()->attach('workflowmanagement.action.success', $actionConfig['events']['success']);
            }
            if (isset($actionConfig['events']['failure'])) {
                $this->registeredActionEvents[] = \Pimcore::getEventManager()->attach('workflowmanagement.action.failure', $actionConfig['events']['failure']);
            }
        }
    }