protected static function generateFullCapabilities(string $contrName, array $actions): array
    {
        $result = [];

        if (empty($contrName) || empty($actions)) {
            return $result;
        }

        // generate action's full (all) type capabilities
        foreach ($actions as $action) {
            $name = static::generateCapabilityName($contrName, $action);
            $options = [
                'label' => static::generateCapabilityLabel($contrName, $action . '_all'),
                'description' => static::generateCapabilityDescription($contrName, static::humanizeActionName($action))
            ];

            $result[] = new Cap($name, $options);
        }

        return $result;
    }
protected static function generateFullCapabilities(string $contrName, array $actions): array
    {
        $result = [];

        if (empty($contrName) || empty($actions)) {
            return $result;
        }

        // generate action's full (all) type capabilities
        foreach ($actions as $action) {
            $name = static::generateCapabilityName($contrName, $action);
            $options = [
                'label' => static::generateCapabilityLabel($contrName, $action . '_all'),
                'description' => static::generateCapabilityDescription($contrName, static::humanizeActionName($action))
            ];

            $result[] = new Cap($name, $options);
        }

        return $result;
    }
protected static function generateFullCapabilities ( string $ contrName , array $ actions ) : array { $ result = [ ] ; if ( empty ( $ contrName ) || empty ( $ actions ) ) { return $ result ; } // generate action's full (all) type capabilities foreach ( $ actions as $ action ) { $ name = static :: generateCapabilityName ( $ contrName , $ action ) ; $ options = [ 'label' => static :: generateCapabilityLabel ( $ contrName , $ action . '_all' ) , 'description' => static :: generateCapabilityDescription ( $ contrName , static :: humanizeActionName ( $ action ) ) ] ; $ result [ ] = new Cap ( $ name , $ options ) ; } return $ result ; }
Generate controller full capabilities.

@param string $contrName Controller name
@param mixed[] $actions Controller actions
@return mixed[]
Generate controller full capabilities .