示例#1
0
 /**
  * {@inheritdoc}
  */
 public function isScopeStore()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isScopeStore');
     if (!$pluginInfo) {
         return parent::isScopeStore();
     } else {
         return $this->___callPlugins('isScopeStore', func_get_args(), $pluginInfo);
     }
 }
 /**
  * Retrieve label of attribute scope
  *
  * GLOBAL | WEBSITE | STORE
  *
  * @param EavAttribute $attribute
  * @return string
  */
 public function getScopeLabel(EavAttribute $attribute)
 {
     $html = '';
     if (!$attribute || $this->storeManager->isSingleStoreMode() || $attribute->getFrontendInput() === AttributeInterface::FRONTEND_INPUT) {
         return $html;
     }
     if ($attribute->isScopeGlobal()) {
         $html .= __('[GLOBAL]');
     } elseif ($attribute->isScopeWebsite()) {
         $html .= __('[WEBSITE]');
     } elseif ($attribute->isScopeStore()) {
         $html .= __('[STORE VIEW]');
     }
     return $html;
 }