main/core/Manager/Resource/ResourceActionManager.php
public function all(ResourceType $resourceType): array
    {
        if (empty($this->actions)) {
            $this->load();
        }

        // get all actions implemented for the resource
        $actions = array_filter($this->actions, function (MenuAction $action) use ($resourceType) {
            return empty($action->getResourceType()) || $resourceType->getId() === $action->getResourceType()->getId();
        });

        return array_values($actions);
    }
public function all(ResourceType $resourceType): array
    {
        if (empty($this->actions)) {
            $this->load();
        }

        // get all actions implemented for the resource
        $actions = array_filter($this->actions, function (MenuAction $action) use ($resourceType) {
            return empty($action->getResourceType()) || $resourceType->getId() === $action->getResourceType()->getId();
        });

        return array_values($actions);
    }
public function all ( ResourceType $ resourceType ) : array { if ( empty ( $ this -> actions ) ) { $ this -> load ( ) ; } // get all actions implemented for the resource $ actions = array_filter ( $ this -> actions , function ( MenuAction $ action ) use ( $ resourceType ) { return empty ( $ action -> getResourceType ( ) ) || $ resourceType -> getId ( ) === $ action -> getResourceType ( ) -> getId ( ) ; } ) ; return array_values ( $ actions ) ; }
Gets all actions available for a resource type.

@param ResourceType $resourceType

@return MenuAction[]
Gets all actions available for a resource type .