function 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 - Provides base field definitions for an entity type.
1 method overrides RevisionableContentEntityBase::baseFieldDefinitions()
- EntityTestWithRevisionLog::baseFieldDefinitions in core/
modules/ system/ tests/ modules/ entity_test_revlog/ src/ Entity/ EntityTestWithRevisionLog.php - Provides base field definitions for an entity type.
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.