src/Factory/ConfigurationFactory.php
public function createResourceMenuConfiguration()
    {
        $menuConfiguration = [];

        foreach ($this->resourceCollection->all() as $resource) {
            $resourceConfiguration = $resource->getConfiguration();

            // Add only entry for the "list" action
            if (
                !key_exists('actions', $resourceConfiguration) ||
                null === $resourceConfiguration['actions'] ||
                !array_key_exists('list', $resourceConfiguration['actions'])
            ) {
                continue;
            }
            $menuConfiguration['items'][] = [
                'text' => ucfirst($resource->getName()),
                'admin' => $resource->getName(),
                'action' => 'list',
            ];
        }

        return $menuConfiguration;
    }
public function createResourceMenuConfiguration()
    {
        $menuConfiguration = [];

        foreach ($this->resourceCollection->all() as $resource) {
            $resourceConfiguration = $resource->getConfiguration();

            // Add only entry for the "list" action
            if (
                !key_exists('actions', $resourceConfiguration) ||
                null === $resourceConfiguration['actions'] ||
                !array_key_exists('list', $resourceConfiguration['actions'])
            ) {
                continue;
            }
            $menuConfiguration['items'][] = [
                'text' => ucfirst($resource->getName()),
                'admin' => $resource->getName(),
                'action' => 'list',
            ];
        }

        return $menuConfiguration;
    }
public function createResourceMenuConfiguration ( ) { $ menuConfiguration = [ ] ; foreach ( $ this -> resourceCollection -> all ( ) as $ resource ) { $ resourceConfiguration = $ resource -> getConfiguration ( ) ; // Add only entry for the "list" action if ( ! key_exists ( 'actions' , $ resourceConfiguration ) || null === $ resourceConfiguration [ 'actions' ] || ! array_key_exists ( 'list' , $ resourceConfiguration [ 'actions' ] ) ) { continue ; } $ menuConfiguration [ 'items' ] [ ] = [ 'text' => ucfirst ( $ resource -> getName ( ) ) , 'admin' => $ resource -> getName ( ) , 'action' => 'list' , ] ; } return $ menuConfiguration ; }
Build the resources menu items.

@return array
Build the resources menu items .