main/core/Manager/Resource/ResourceActionManager.php
public function execute(ResourceNode $resourceNode, string $actionName, array $options = [], array $content = null, array $files = null): Response
    {
        $resourceAction = $this->get($resourceNode, $actionName);
        $resource = $this->resourceManager->getResourceFromNode($resourceNode);

        /** @var ResourceActionEvent $event */
        $event = $this->dispatcher->dispatch(
            static::eventName($actionName, $resourceAction->getResourceType()),
            ResourceActionEvent::class,
            [$resource, $options, $content, $files, $resourceNode]
        );

        return $event->getResponse();
    }
public function execute(ResourceNode $resourceNode, string $actionName, array $options = [], array $content = null, array $files = null): Response
    {
        $resourceAction = $this->get($resourceNode, $actionName);
        $resource = $this->resourceManager->getResourceFromNode($resourceNode);

        /** @var ResourceActionEvent $event */
        $event = $this->dispatcher->dispatch(
            static::eventName($actionName, $resourceAction->getResourceType()),
            ResourceActionEvent::class,
            [$resource, $options, $content, $files, $resourceNode]
        );

        return $event->getResponse();
    }
public function execute ( ResourceNode $ resourceNode , string $ actionName , array $ options = [ ] , array $ content = null , array $ files = null ) : Response { $ resourceAction = $ this -> get ( $ resourceNode , $ actionName ) ; $ resource = $ this -> resourceManager -> getResourceFromNode ( $ resourceNode ) ; /** @var ResourceActionEvent $event */ $ event = $ this -> dispatcher -> dispatch ( static :: eventName ( $ actionName , $ resourceAction -> getResourceType ( ) ) , ResourceActionEvent :: class , [ $ resource , $ options , $ content , $ files , $ resourceNode ] ) ; return $ event -> getResponse ( ) ; }
Executes an action on a resource.

@param ResourceNode $resourceNode
@param string       $actionName
@param array        $options
@param array        $content
@param array        $files

@return Response
Executes an action on a resource .