@@ 351-361 (lines=11) @@ | ||
348 | /** |
|
349 | * @param EntityChangedEvent $e |
|
350 | */ |
|
351 | protected function triggerAttributesChange(EntityChangedEvent $e) |
|
352 | { |
|
353 | $changedEntity = $e->getChangedEntity(); |
|
354 | ||
355 | $originalAttrs = $e->getOriginalEntity()->extract(); |
|
356 | $changedAttrs = $changedEntity->extract(); |
|
357 | ||
358 | foreach (array_keys(array_diff_assoc($originalAttrs, $changedAttrs)) as $attribute) { |
|
359 | $this->eventManager->trigger($this->getAttributeChangeEventName($changedEntity, $attribute), $this, $e); |
|
360 | } |
|
361 | } |
|
362 | ||
363 | /** |
|
364 | * @param EntityInterface $changedEntity |
@@ 343-353 (lines=11) @@ | ||
340 | /** |
|
341 | * @param EntityChangedEvent $e |
|
342 | */ |
|
343 | protected function triggerAttributesChange(EntityChangedEvent $e) |
|
344 | { |
|
345 | $changedEntity = $e->getChangedEntity(); |
|
346 | ||
347 | $originalAttrs = $e->getOriginalEntity()->extract(); |
|
348 | $changedAttrs = $changedEntity->extract(); |
|
349 | ||
350 | foreach (array_keys(array_diff_assoc($originalAttrs, $changedAttrs)) as $attribute) { |
|
351 | $this->eventManager->trigger($this->getAttributeChangeEventName($changedEntity, $attribute), $this, $e); |
|
352 | } |
|
353 | } |
|
354 | ||
355 | /** |
|
356 | * @param EntityInterface $changedEntity |