Defines an interface for entity change timestamp tracking.
This data may be useful for more precise cache invalidation (especially on the client side) and concurrent editing locking.
The entity system automatically adds in the 'EntityChanged' constraint for entity types implementing this interface in order to disallow concurrent editing.
Hierarchy
- interface \Drupal\Core\Entity\EntityChangedInterface
See also
Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint
File
- core/lib/Drupal/Core/Entity/EntityChangedInterface.php, line 17
Namespace
Drupal\Core\Entity
Members
Name | Modifiers | Type | Description |
---|---|---|---|
EntityChangedInterface::getChangedTime | public | function | Gets the timestamp of the last entity change for the current translation. |
EntityChangedInterface::getChangedTimeAcrossTranslations | public | function | Gets the timestamp of the last entity change across all translations. |
EntityChangedInterface::setChangedTime | public | function | Sets the timestamp of the last entity change for the current translation. |
Please login to continue.