main/core/Manager/Resource/ResourceActionManager.php
public function get(ResourceNode $resourceNode, string $actionName)
    {
        $nodeActions = $this->all($resourceNode->getResourceType());
        foreach ($nodeActions as $current) {
            if ($actionName === $current->getName()) {
                return $current;
            }
        }

        return null;
    }
public function get(ResourceNode $resourceNode, string $actionName)
    {
        $nodeActions = $this->all($resourceNode->getResourceType());
        foreach ($nodeActions as $current) {
            if ($actionName === $current->getName()) {
                return $current;
            }
        }

        return null;
    }
public function get ( ResourceNode $ resourceNode , string $ actionName ) { $ nodeActions = $ this -> all ( $ resourceNode -> getResourceType ( ) ) ; foreach ( $ nodeActions as $ current ) { if ( $ actionName === $ current -> getName ( ) ) { return $ current ; } } return null ; }
Retrieves the correct action instance for resource.

@param ResourceNode $resourceNode
@param string       $actionName

@return MenuAction
Retrieves the correct action instance for resource .