Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Entity/RevisionableInterface.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 |
---|---|
2 | 2 |
3 namespace Drupal\Core\Entity; | 3 namespace Drupal\Core\Entity; |
4 | 4 |
5 /** | 5 /** |
6 * Provides methods for an entity to support revisions. | 6 * Provides methods for an entity to support revisions. |
7 * | |
8 * Classes implementing this interface do not necessarily support revisions. | |
9 * | |
10 * To detect whether an entity type supports revisions, call | |
11 * EntityTypeInterface::isRevisionable(). | |
12 * | |
13 * Many entity interfaces are composed of numerous other interfaces such as this | |
14 * one, which allow implementations to pick and choose which features to. | |
15 * support through stub implementations of various interface methods. This means | |
16 * that even if an entity class implements RevisionableInterface, it might only | |
17 * have a stub implementation and not a functional one. | |
18 * | |
19 * @see \Drupal\Core\Entity\EntityTypeInterface::isRevisionable() | |
20 * @see https://www.drupal.org/docs/8/api/entity-api/structure-of-an-entity-annotation | |
21 * @see https://www.drupal.org/docs/8/api/entity-api/making-an-entity-revisionable | |
7 */ | 22 */ |
8 interface RevisionableInterface { | 23 interface RevisionableInterface { |
9 | 24 |
10 /** | 25 /** |
11 * Determines whether a new revision should be created on save. | 26 * Determines whether a new revision should be created on save. |