Exemplo n.º 1
0
 /**
  * Around getDbUpdateString
  *
  * @param \Magento\Framework\View\Model\Layout\Merge $subject
  * @param callable $proceed
  * @param string $handle
  * @return string
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function aroundGetDbUpdateString(\Magento\Framework\View\Model\Layout\Merge $subject, \Closure $proceed, $handle)
 {
     return $this->update->fetchUpdatesByHandle($handle, $subject->getTheme(), $subject->getScope());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getScope()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getScope');
     if (!$pluginInfo) {
         return parent::getScope();
     } else {
         return $this->___callPlugins('getScope', func_get_args(), $pluginInfo);
     }
 }