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.
Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint
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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityChangedInterface.php/interface/EntityChangedInterface/8.1.x