- /**
- * Before save handler
- *
- * @param \Magento\Store\Model\ResourceModel\Store $subject
- * @param \Magento\Framework\Model\AbstractModel $object
- *
- * @return void
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- */
- public function beforeSave(
- \Magento\Store\Model\ResourceModel\Store $subject,
- \Magento\Framework\Model\AbstractModel $object
- ) {
- if ((!$object->getId() || $object->dataHasChangedFor('group_id')) && $object->getIsActive()) {
- $this->_indexerEavProcessor->markIndexerAsInvalid();
- }
- }