Mercurial > hg > cmmr2012-drupal-site
diff core/lib/Drupal/Core/Entity/TranslatableInterface.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Core/Entity/TranslatableInterface.php Thu Jul 05 14:24:15 2018 +0000 @@ -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(); + +}