Devise\Menus\MenusRepository::childrenLoaded PHP Méthode

childrenLoaded() private méthode

checks if the children relation has been lazy loaded the goal is to respect the 'depth' value requested when the menu was built
private childrenLoaded ( MenuItem $item ) : boolean
$item MenuItem
Résultat boolean
    private function childrenLoaded($item)
    {
        $relations = $item->getRelations();
        return isset($relations['children']);
    }