Пример #1
0
 /**
  * Retrieve label of attribute scope
  *
  * GLOBAL | WEBSITE | STORE
  *
  * @param Attribute $attribute
  * @return string
  */
 public function getScopeLabel($attribute)
 {
     $html = '';
     if ($this->_storeManager->isSingleStoreMode()) {
         return $html;
     }
     if ($attribute->isScopeGlobal()) {
         $html .= '<br/>' . __('[GLOBAL]');
     } elseif ($attribute->isScopeWebsite()) {
         $html .= '<br/>' . __('[WEBSITE]');
     } elseif ($attribute->isScopeStore()) {
         $html .= '<br/>' . __('[STORE VIEW]');
     }
     return $html;
 }