1. 8.5.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
  2. 8.1.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
  3. 8.2.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
  4. 8.3.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
  5. 8.4.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
  6. 8.6.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php
View source
<?php

namespace Drupal\Core\Entity;


/**
 * Provides a content entity with extended support for revisions.
 *
 * In addition to the parent entity class, base fields and methods for
 * accessing the revision log message, revision owner and the revision creation
 * time are provided.
 *
 * @ingroup entity_api
 */
abstract class RevisionableContentEntityBase extends ContentEntityBase implements RevisionLogInterface {
  use RevisionLogEntityTrait;

  /**
   * {@inheritdoc}
   */
  public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
    $fields = parent::baseFieldDefinitions($entity_type);
    $fields += static::revisionLogBaseFieldDefinitions($entity_type);
    return $fields;
  }

}

Classes

Namesort descending Description
RevisionableContentEntityBase Provides a content entity with extended support for revisions.