annotate core/lib/Drupal/Core/Entity/ContentEntityInterface.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\Core\Entity;
Chris@0 4
Chris@0 5 /**
Chris@0 6 * Defines a common interface for all content entity objects.
Chris@0 7 *
Chris@16 8 * Content entities use fields for all their entity properties and can be
Chris@16 9 * translatable and revisionable. Translations and revisions can be
Chris@16 10 * enabled per entity type through annotation and using entity type hooks.
Chris@16 11 *
Chris@16 12 * It's best practice to always implement ContentEntityInterface for
Chris@16 13 * content-like entities that should be stored in some database, and
Chris@16 14 * enable/disable revisions and translations as desired.
Chris@0 15 *
Chris@0 16 * When implementing this interface which extends Traversable, make sure to list
Chris@0 17 * IteratorAggregate or Iterator before this interface in the implements clause.
Chris@0 18 *
Chris@0 19 * @see \Drupal\Core\Entity\ContentEntityBase
Chris@16 20 * @see \Drupal\Core\Entity\EntityTypeInterface
Chris@0 21 *
Chris@0 22 * @ingroup entity_api
Chris@0 23 */
Chris@18 24 interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, TranslatableRevisionableInterface, SynchronizableInterface {
Chris@0 25
Chris@0 26 }