Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function usesSource()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'usesSource');
     if (!$pluginInfo) {
         return parent::usesSource();
     } else {
         return $this->___callPlugins('usesSource', func_get_args(), $pluginInfo);
     }
 }
 /**
  * Check attribute availability for super product creation
  *
  * @param  \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute
  * @return bool
  */
 public function canUseAttribute(\Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute)
 {
     return $attribute->getIsGlobal() == \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL && $attribute->getIsVisible() && $attribute->usesSource() && $attribute->getIsUserDefined();
 }