attributeHelper = $attributeHelper; $this->catalogResource = $catalogResource; } /** * @param \Magento\Catalog\Controller\Adminhtml\Product\Action\Attribute\Save $subject * @param $result * * @return mixed */ public function afterExecute( \Magento\Catalog\Controller\Adminhtml\Product\Action\Attribute\Save $subject, $result ) { $productIds = $this->attributeHelper->getProductIds(); if (! empty($productIds)) { $this->catalogResource->setModified($productIds); } return $result; } }