/** * Check if attribute scope is global. * * @param ProductAttributeInterface $attribute * @return bool */ private function isScopeGlobal($attribute) { return $attribute->getScope() === ProductAttributeInterface::SCOPE_GLOBAL_TEXT; }