Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line 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; } }