Exemplo n.º 1
0
 /**
  * After save object attribute
  *
  * @param AbstractModel $object
  * @param string $attribute
  * @return \Magento\Sales\Model\Resource\Attribute
  */
 protected function _afterSaveAttribute(AbstractModel $object, $attribute)
 {
     if ($object->getEventObject() && $object->getEventPrefix()) {
         $this->eventManager->dispatch($object->getEventPrefix() . '_save_attribute_after', [$object->getEventObject() => $this, 'object' => $object, 'attribute' => $attribute]);
     }
     return $this;
 }