public function showMenuAction() { $workspace = $this->workspaceSource->getWorkspace(); if (null === $workspace) { return ''; } $event = new WorkspaceEvent($workspace); $this->dispatcher->dispatch($workspace->getWorkspaceEvent(), $event); $this->dispatcher->dispatch(CantigaEvents::WORKSPACE_GENERAL, $event); return $this->tpl->render('CantigaCoreBundle:Components:workspace-menu.html.twig', array('workspace' => $workspace, 'workspaceInfo' => Workspaces::get($workspace->getKey()), 'currentWorkgroup' => $event->getCurrentWorkgroup(), 'currentPage' => $event->getCurrentPage())); }
public function showWorkspaces(ShowWorkspacesEvent $event) { $event->setWorkspaces(Workspaces::fetchByRole($this->authChecker)); $event->setActive(Workspaces::get($this->workspaceSource->getWorkspace()->getKey())); }
public function workspaceSkin() { $workspace = $this->workspaceSource->getWorkspace(); if (null !== $workspace) { $workspaceInfo = Workspaces::get($workspace->getKey()); return !empty($workspaceInfo['skin']) ? $workspaceInfo['skin'] : 'blue'; } return 'blue'; }