public function afterAddPageLayoutHandles(Page $subject)
 {
     $group = $this->groupFactory->create()->load($this->customerSession->getCustomerGroupId());
     if ($group->getId() >= 0) {
         $handle = sprintf("customer_group_%s", strtolower(preg_replace("/[^A-Za-z0-9]/", '_', $group->getName())));
         $subject->addHandle($handle);
     }
     return $subject;
 }
Ejemplo n.º 2
0
 protected function initResultPage()
 {
     if (!is_null($this->resultPage)) {
         return;
     }
     $this->resultPage = $this->resultPageFactory->create();
     $this->resultPage->addHandle($this->getLayoutType());
     $this->resultPage->getConfig()->getTitle()->set($this->__('M2ePro'));
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function addHandle($handleName)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addHandle');
     if (!$pluginInfo) {
         return parent::addHandle($handleName);
     } else {
         return $this->___callPlugins('addHandle', func_get_args(), $pluginInfo);
     }
 }