Esempio n. 1
0
 /**
  * Get css class for "shared" functionality
  *
  * @param \Magento\Config\Model\Config\Structure\Element\Field $field
  * @return string
  */
 protected function _getSharedCssClass(\Magento\Config\Model\Config\Structure\Element\Field $field)
 {
     $sharedClass = '';
     if ($field->getAttribute('shared') && $field->getConfigPath()) {
         $sharedClass = ' shared shared-' . str_replace('/', '-', $field->getConfigPath());
         return $sharedClass;
     }
     return $sharedClass;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function getAttribute($key)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAttribute');
     if (!$pluginInfo) {
         return parent::getAttribute($key);
     } else {
         return $this->___callPlugins('getAttribute', func_get_args(), $pluginInfo);
     }
 }