public EntityOperations::entityUpdate(EntityInterface $entity)
Hook bridge.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity that was just saved.
See also
File
- core/modules/content_moderation/src/EntityOperations.php, line 129
Class
- EntityOperations
- Defines a class for reacting to entity events.
Namespace
Drupal\content_moderation
Code
1 2 3 4 5 6 | public function entityUpdate(EntityInterface $entity ) { if ( $this ->moderationInfo->isModeratedEntity( $entity )) { $this ->updateOrCreateFromEntity( $entity ); $this ->setLatestRevision( $entity ); } } |
Please login to continue.