/** * Initializes the view before invoking an action method. * * Override this method to solve assign variables common for all actions * or prepare the view in another way before the action is called. * * @param \TYPO3\FLOW3\MVC\View\ViewInterface $view The view to be initialized * @return void * @api */ protected function initializeView(\TYPO3\FLOW3\MVC\View\ViewInterface $view) { $menuItems = array(); $this->addMenuItem($menuItems, array('label' => 'Clone', 'href' => $this->uriBuilder->reset()->uriFor('index', array(), 'Standard')), 'Standard'); $this->addMenuItem($menuItems, array('label' => 'Create repository', 'href' => $this->uriBuilder->reset()->uriFor('newRepository', array(), 'Management')), 'Management'); $view->assignMultiple(array('javascript_debug_timestamp' => '?' . time(), 'menuItems' => $menuItems, 'pre-config' => json_encode((object) array('host' => $this->settings['host'], 'email' => $this->getDefaultEmail())))); }
/** * @param \TYPO3\FLOW3\Mvc\View\ViewInterface $view * @return void */ protected function initializeView(\TYPO3\FLOW3\Mvc\View\ViewInterface $view) { $view->assignMultiple(array('moduleConfiguration' => $this->moduleConfiguration, 'moduleBreadcrumb' => $this->moduleBreadcrumb)); }