/** * {@inheritdoc} */ public function hasData($key = '') { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'hasData'); if (!$pluginInfo) { return parent::hasData($key); } else { return $this->___callPlugins('hasData', func_get_args(), $pluginInfo); } }
/** * Is attribute Textual Swatch * * @param Attribute $attribute * @return bool */ public function isTextSwatch(Attribute $attribute) { if (!$attribute->hasData(Swatch::SWATCH_INPUT_TYPE_KEY)) { $this->populateAdditionalDataEavAttribute($attribute); } return $attribute->getData(Swatch::SWATCH_INPUT_TYPE_KEY) == Swatch::SWATCH_INPUT_TYPE_TEXT; }