We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7688c commit 6da21a5Copy full SHA for 6da21a5
Model/Import/Category.php
@@ -41,6 +41,7 @@
41
use Magento\Framework\Filesystem;
42
use Magento\UrlRewrite\Model\UrlPersistInterface;
43
use Magento\Catalog\Api\CategoryRepositoryInterface;
44
+use Magento\Eav\Model\Entity\Attribute\Source\Boolean;
45
46
/**
47
* Entity Adapter for importing Magento Categories
@@ -339,7 +340,7 @@ public function getAttributeOptions(AbstractAttribute $attribute): array
339
340
$index = 'label';
341
if (
342
in_array($attribute->getAttributeCode(), $this->indexValueAttributes) ||
- $attribute->getSourceModel() == "Magento\Eav\Model\Entity\Attribute\Source\Boolean"
343
+ $attribute->getSourceModel() == Boolean::class
344
) {
345
$index = 'value';
346
};
0 commit comments