src/CRUDlex/Service.php
public function getEntitiesNavBar()
    {
        $result = [];
        foreach ($this->datas as $entity => $data) {
            $navBarGroup = $data->getDefinition()->getNavBarGroup();
            if ($navBarGroup !== 'main') {
                $result[$navBarGroup][] = $entity;
            } else {
                $result[$entity] = 'main';
            }
        }
        return $result;
    }
public function getEntitiesNavBar()
    {
        $result = [];
        foreach ($this->datas as $entity => $data) {
            $navBarGroup = $data->getDefinition()->getNavBarGroup();
            if ($navBarGroup !== 'main') {
                $result[$navBarGroup][] = $entity;
            } else {
                $result[$entity] = 'main';
            }
        }
        return $result;
    }
public function getEntitiesNavBar ( ) { $ result = [ ] ; foreach ( $ this -> datas as $ entity => $ data ) { $ navBarGroup = $ data -> getDefinition ( ) -> getNavBarGroup ( ) ; if ( $ navBarGroup !== 'main' ) { $ result [ $ navBarGroup ] [ ] = $ entity ; } else { $ result [ $ entity ] = 'main' ; } } return $ result ; }
Getter for the entities for the navigation bar.

@return string[]
a list of all available entity names with their group
Getter for the entities for the navigation bar .