Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / RevisionableContentEntityBase.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 /**
6  * Provides a content entity with extended support for revisions.
7  *
8  * In addition to the parent entity class, base fields and methods for
9  * accessing the revision log message, revision owner and the revision creation
10  * time are provided.
11  *
12  * @ingroup entity_api
13  */
14 abstract class RevisionableContentEntityBase extends ContentEntityBase implements RevisionLogInterface {
15
16   use RevisionLogEntityTrait;
17
18   /**
19    * {@inheritdoc}
20    */
21   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
22     $fields = parent::baseFieldDefinitions($entity_type);
23
24     $fields += static::revisionLogBaseFieldDefinitions($entity_type);
25     return $fields;
26   }
27
28 }