moduleDataSetup = $moduleDataSetup; $this->eavSetupFactory = $eavSetupFactory; } /** * @inheritdoc */ public function apply() { /** @var EavSetup $eavSetup */ $this->moduleDataSetup->getConnection()->startSetup(); $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); $eavSetup->removeAttribute(\Magento\Catalog\Model\Product::ENTITY, 'bynder_cron_sync'); $eavSetup->addAttribute(\Magento\Catalog\Model\Product::ENTITY, 'bynder_cron_sync', [ 'group' => 'Product Details', 'type' => 'text', 'backend' => '', 'frontend' => '', 'sort_order' => 230, 'label' => 'Bynder Cron', 'input' => 'text', 'class' => '', 'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => false, 'default' => '', 'searchable' => false, 'filterable' => false, 'comparable' => false, 'unique' => false, 'visible_on_front' => false, 'used_in_product_listing' => true, 'apply_to' => '' ]); $eavSetup->removeAttribute(\Magento\Catalog\Model\Product::ENTITY, 'bynder_auto_replace'); $eavSetup->addAttribute(\Magento\Catalog\Model\Product::ENTITY, 'bynder_auto_replace', [ 'group' => 'Product Details', 'type' => 'text', 'backend' => '', 'frontend' => '', 'sort_order' => 240, 'label' => 'Bynder Auto Replace', 'input' => 'text', 'class' => '', 'global' => \Magento\Catalog\Model\ResourceModel\Eav\Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => false, 'default' => '', 'searchable' => false, 'filterable' => false, 'comparable' => false, 'unique' => false, 'visible_on_front' => false, 'used_in_product_listing' => true, 'apply_to' => '' ]); $this->moduleDataSetup->getConnection()->endSetup(); } /** * @inheritdoc */ public static function getDependencies() { return []; } /** * @inheritdoc */ public function getAliases() { return []; } }