Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MenuBuilder.php
Go to the documentation of this file.
1 <?php
7 
11 
18 {
23  protected $docRootLocator;
24 
31  {
32  $this->docRootLocator = $docRootLocator;
33  }
34 
44  public function afterGetResult(Builder $subject, Menu $menu)
45  {
46  if ($this->docRootLocator->isPub()) {
47  $menu->remove('Magento_Backend::setup_wizard');
48  }
49  return $menu;
50  }
51 }
afterGetResult(Builder $subject, Menu $menu)
Definition: MenuBuilder.php:44
__construct(DocRootLocator $docRootLocator)
Definition: MenuBuilder.php:30