/** * Retrieve attribute by code * * @param string $attrCode * @return mixed */ public function retrieveAttributeByCode($attrCode) { if (!$this->_resource) { $this->_resource = $this->_resourceFactory->create(); } if (!isset($this->_attributeCache[$attrCode])) { $this->_attributeCache[$attrCode] = $this->_resource->getAttribute($attrCode); } return $this->_attributeCache[$attrCode]; }
/** * {@inheritdoc} */ public function getAttribute($attribute) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAttribute'); if (!$pluginInfo) { return parent::getAttribute($attribute); } else { return $this->___callPlugins('getAttribute', func_get_args(), $pluginInfo); } }