Class Navigation
Definition at line 18 of file Navigation.php.
◆ __construct()
__construct |
( |
NavModel |
$navigation, |
|
|
Status |
$status |
|
) |
| |
- Parameters
-
NavModel | $navigation | |
Status | $status | |
Definition at line 39 of file Navigation.php.
43 $this->view =
new ViewModel;
44 $this->view->setVariable(
'menu', $this->navigation->getMenuItems());
45 $this->view->setVariable(
'main', $this->navigation->getMainItems());
◆ headerBarAction()
- Returns
- array|ViewModel
Definition at line 87 of file Navigation.php.
89 if ($this->navigation->getType() === NavModel::NAV_UPDATER) {
90 if ($this->status->isUpdateError() || $this->status->isUpdateInProgress()) {
94 $this->view->setTemplate(
'/magento/setup/navigation/header-bar.phtml');
95 $this->view->setTerminal(
true);
◆ indexAction()
- Returns
- JsonModel
Definition at line 51 of file Navigation.php.
53 $json =
new JsonModel;
54 $json->setVariable(
'nav', $this->navigation->getData());
55 $json->setVariable(
'menu', $this->navigation->getMenuItems());
56 $json->setVariable(
'main', $this->navigation->getMainItems());
57 $json->setVariable(
'titles', $this->navigation->getTitles());
◆ menuAction()
- Returns
- array|ViewModel
Definition at line 64 of file Navigation.php.
66 $this->view->setVariable(
'menu', $this->navigation->getMenuItems());
67 $this->view->setVariable(
'main', $this->navigation->getMainItems());
68 $this->view->setTemplate(
'/magento/setup/navigation/menu.phtml');
69 $this->view->setTerminal(
true);
◆ sideMenuAction()
- Returns
- array|ViewModel
Definition at line 76 of file Navigation.php.
78 $this->view->setTemplate(
'/magento/setup/navigation/side-menu.phtml');
79 $this->view->setVariable(
'isInstaller', $this->navigation->getType() == NavModel::NAV_INSTALLER);
80 $this->view->setTerminal(
true);
◆ $navigation
◆ $status
◆ $view
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/setup/src/Magento/Setup/Controller/Navigation.php