3 namespace Drupal\Core\Entity;
6 * Provides a content entity with extended support for revisions.
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
14 abstract class RevisionableContentEntityBase extends ContentEntityBase implements RevisionLogInterface {
16 use RevisionLogEntityTrait;
21 public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
22 $fields = parent::baseFieldDefinitions($entity_type);
24 $fields += static::revisionLogBaseFieldDefinitions($entity_type);