Ejemplo n.º 1
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('admin.menu.design')->addSubnode($this->menuNodeFactory->create()->setName('admin.template.plural')->setUrl('admin_template_list')->setPriority(1));
 }
Ejemplo n.º 2
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('admin.settings.plural')->addSubnode($this->menuNodeFactory->create()->setName('admin.settings.section.address.title')->setUrl('admin_store_address')->setPriority(2))->addSubnode($this->menuNodeFactory->create()->setName('admin.settings.section.store.title')->setUrl('admin_store_settings')->setPriority(2));
     $menu->findSubnodeByName('admin.menu.design')->addSubnode($this->menuNodeFactory->create()->setName('admin.settings.section.corporate.title')->setUrl('admin_store_corporate')->setPriority(2)->setTag('design'));
 }
Ejemplo n.º 3
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('admin.settings.plural')->addSubnode($this->menuNodeFactory->create()->setName('admin.currency.plural')->setUrl('admin_currency_list')->setPriority(3));
 }
Ejemplo n.º 4
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $visiblePlugins = $this->filterVisiblePlugins();
     $this->buildByPluginCategory($menu->findSubnodeByName('plugin_type.payment'), $visiblePlugins, 'payment')->buildByPluginCategory($menu->findSubnodeByName('plugin_type.shipping'), $visiblePlugins, 'shipping')->buildByPluginCategory($menu->findSubnodeByName('plugin_type.social'), $visiblePlugins, 'social');
 }
Ejemplo n.º 5
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('admin.order.plural')->setWarnings($this->getNonShippedOrdersCount());
 }
Ejemplo n.º 6
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('plugin_type.social')->addSubnode($this->menuNodeFactory->create()->setName('admin.plugin.social_store')->setUrl(['admin_plugin_categorized_list', ['category' => 'social']])->setPriority(9999));
     $menu->findSubnodeByName('plugin_type.payment')->addSubnode($this->menuNodeFactory->create()->setName('admin.plugin.payment_store')->setUrl(['admin_plugin_categorized_list', ['category' => 'payment']])->setPriority(9999));
     $menu->findSubnodeByName('plugin_type.shipping')->addSubnode($this->menuNodeFactory->create()->setName('admin.plugin.shipping_store')->setUrl(['admin_plugin_categorized_list', ['category' => 'shipping']])->setPriority(9999));
 }
Ejemplo n.º 7
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('plugin_type.shipping')->addSubnode($this->menuNodeFactory->create()->setName('admin.menu.custom_shipping')->setUrl('admin_carrier_list')->setActiveUrls(['admin_carrier_edit', 'admin_carrier_new', 'admin_shipping_range_edit', 'admin_shipping_range_new']));
 }
Ejemplo n.º 8
0
 /**
  * Build the menu
  *
  * @param MenuInterface $menu Menu
  */
 public function build(MenuInterface $menu)
 {
     $menu->findSubnodeByName('admin.communication.single')->addSubnode($this->menuNodeFactory->create()->setName('admin.page.plural')->setCode('file-text-o')->setUrl('admin_page_list')->setActiveUrls(['admin_page_edit', 'admin_page_new']))->addSubnode($this->menuNodeFactory->create()->setName('admin.blog.single')->setCode('pencil')->setUrl('admin_blog_post_list')->setActiveUrls(['admin_blog_post_edit', 'admin_blog_post_new']))->addSubnode($this->menuNodeFactory->create()->setName('admin.mailing.plural')->setCode('envelope-o')->setUrl('admin_email_list')->setActiveUrls(['admin_email_list', 'admin_email_edit']));
 }