comparison core/lib/Drupal/Core/Entity/ContentEntityInterface.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 4c8ae668cc8c
children c2387f117808
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php 1 <?php
2 2
3 namespace Drupal\Core\Entity; 3 namespace Drupal\Core\Entity;
4
5 use Drupal\Core\TypedData\TranslatableInterface;
6 4
7 /** 5 /**
8 * Defines a common interface for all content entity objects. 6 * Defines a common interface for all content entity objects.
9 * 7 *
10 * Content entities use fields for all their entity properties and are 8 * Content entities use fields for all their entity properties and are
18 * 16 *
19 * @see \Drupal\Core\Entity\ContentEntityBase 17 * @see \Drupal\Core\Entity\ContentEntityBase
20 * 18 *
21 * @ingroup entity_api 19 * @ingroup entity_api
22 */ 20 */
23 interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, RevisionableInterface, TranslatableInterface { 21 interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface {
24
25 /**
26 * Determines if the current translation of the entity has unsaved changes.
27 *
28 * @return bool
29 * TRUE if the current translation of the entity has changes.
30 */
31 public function hasTranslationChanges();
32
33 /**
34 * Marks the current revision translation as affected.
35 *
36 * @param bool|null $affected
37 * The flag value. A NULL value can be specified to reset the current value
38 * and make sure a new value will be computed by the system.
39 *
40 * @return $this
41 */
42 public function setRevisionTranslationAffected($affected);
43
44 /**
45 * Checks whether the current translation is affected by the current revision.
46 *
47 * @return bool
48 * TRUE if the entity object is affected by the current revision, FALSE
49 * otherwise.
50 */
51 public function isRevisionTranslationAffected();
52 22
53 /** 23 /**
54 * Gets the loaded Revision ID of the entity. 24 * Gets the loaded Revision ID of the entity.
55 * 25 *
56 * @return int 26 * @return int