comparison core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }