Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Entity/TranslatableInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children | af1871eacc83 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Core/Entity/TranslatableInterface.php Mon Apr 23 09:46:53 2018 +0100 @@ -0,0 +1,20 @@ +<?php + +namespace Drupal\Core\Entity; + +use Drupal\Core\TypedData\TranslatableInterface as TranslatableDataInterface; + +/** + * Provides methods for an entity to support translation. + */ +interface TranslatableInterface extends TranslatableDataInterface { + + /** + * Determines if the current translation of the entity has unsaved changes. + * + * @return bool + * TRUE if the current translation of the entity has changes. + */ + public function hasTranslationChanges(); + +}