EntityChangedInterface

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

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.
doc_Drupal
2016-10-29 09:04:39
Comments
Leave a Comment

Please login to continue.