function RevisionableContentEntityBase::baseFieldDefinitions
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php \Drupal\Core\Entity\RevisionableContentEntityBase::baseFieldDefinitions()
- 10 core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php \Drupal\Core\Entity\RevisionableContentEntityBase::baseFieldDefinitions()
- 11.x core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php \Drupal\Core\Entity\RevisionableContentEntityBase::baseFieldDefinitions()
Overrides ContentEntityBase::baseFieldDefinitions
1 call to RevisionableContentEntityBase::baseFieldDefinitions()
- EntityTestWithRevisionLog::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test_revlog/ src/ Entity/ EntityTestWithRevisionLog.php
1 method overrides RevisionableContentEntityBase::baseFieldDefinitions()
- EntityTestWithRevisionLog::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test_revlog/ src/ Entity/ EntityTestWithRevisionLog.php
File
-
core/
lib/ Drupal/ Core/ Entity/ RevisionableContentEntityBase.php, line 21
Class
- RevisionableContentEntityBase
- Provides a content entity with extended support for revisions.
Namespace
Drupal\Core\EntityCode
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields = parent::baseFieldDefinitions($entity_type);
$fields += static::revisionLogBaseFieldDefinitions($entity_type);
return $fields;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.