REBELinBLUE\Deployer\Composers\NavigationComposer::compose PHP Method

compose() public method

Generates the group listing for the view.
public compose ( Illuminate\Contracts\View\View $view )
$view Illuminate\Contracts\View\View
    public function compose(View $view)
    {
        $active_group = null;
        $active_project = null;
        if (isset($view->project) && !$view->project->is_template) {
            $active_group = $view->project->group_id;
            $active_project = $view->project->id;
        }
        $view->with('active_group', $active_group);
        $view->with('active_project', $active_project);
        $view->with('groups', $this->groupRepository->getAll());
    }
NavigationComposer