comparison core/lib/Drupal/Core/Entity/ContentEntityInterface.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
3 namespace Drupal\Core\Entity; 3 namespace Drupal\Core\Entity;
4 4
5 /** 5 /**
6 * Defines a common interface for all content entity objects. 6 * Defines a common interface for all content entity objects.
7 * 7 *
8 * Content entities use fields for all their entity properties and are 8 * Content entities use fields for all their entity properties and can be
9 * translatable and revisionable, while translations and revisions can be 9 * translatable and revisionable. Translations and revisions can be
10 * enabled per entity type. It's best practice to always implement 10 * enabled per entity type through annotation and using entity type hooks.
11 * ContentEntityInterface for content-like entities that should be stored in 11 *
12 * some database, and enable/disable revisions and translations as desired. 12 * It's best practice to always implement ContentEntityInterface for
13 * content-like entities that should be stored in some database, and
14 * enable/disable revisions and translations as desired.
13 * 15 *
14 * When implementing this interface which extends Traversable, make sure to list 16 * When implementing this interface which extends Traversable, make sure to list
15 * IteratorAggregate or Iterator before this interface in the implements clause. 17 * IteratorAggregate or Iterator before this interface in the implements clause.
16 * 18 *
17 * @see \Drupal\Core\Entity\ContentEntityBase 19 * @see \Drupal\Core\Entity\ContentEntityBase
20 * @see \Drupal\Core\Entity\EntityTypeInterface
18 * 21 *
19 * @ingroup entity_api 22 * @ingroup entity_api
20 */ 23 */
21 interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface { 24 interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface {
22 25