
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php |
<?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;
}
}