main/core/Manager/Resource/MaskManager.php
public function getPermissionMap(ResourceType $type)
    {
        /** @var MaskDecoder[] $decoders */
        $decoders = $this->maskRepo->findBy(['resourceType' => $type]);
        $permsMap = [];

        foreach ($decoders as $decoder) {
            $permsMap[$decoder->getValue()] = $decoder->getName();
        }

        return $permsMap;
    }
public function getPermissionMap(ResourceType $type)
    {
        /** @var MaskDecoder[] $decoders */
        $decoders = $this->maskRepo->findBy(['resourceType' => $type]);
        $permsMap = [];

        foreach ($decoders as $decoder) {
            $permsMap[$decoder->getValue()] = $decoder->getName();
        }

        return $permsMap;
    }
public function getPermissionMap ( ResourceType $ type ) { /** @var MaskDecoder[] $decoders */ $ decoders = $ this -> maskRepo -> findBy ( [ 'resourceType' => $ type ] ) ; $ permsMap = [ ] ; foreach ( $ decoders as $ decoder ) { $ permsMap [ $ decoder -> getValue ( ) ] = $ decoder -> getName ( ) ; } return $ permsMap ; }
Returns an array containing the possible permission for a resource type.

@param ResourceType $type

@return array
Returns an array containing the possible permission for a resource type .