function EditorialContentEntityBase::baseFieldDefinitions
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php \Drupal\Core\Entity\EditorialContentEntityBase::baseFieldDefinitions()
- 8.9.x core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php \Drupal\Core\Entity\EditorialContentEntityBase::baseFieldDefinitions()
- 10 core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php \Drupal\Core\Entity\EditorialContentEntityBase::baseFieldDefinitions()
Overrides ContentEntityBase::baseFieldDefinitions
5 methods override EditorialContentEntityBase::baseFieldDefinitions()
- BlockContent::baseFieldDefinitions in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Media::baseFieldDefinitions in core/
modules/ media/ src/ Entity/ Media.php - MenuLinkContent::baseFieldDefinitions in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php - Node::baseFieldDefinitions in core/
modules/ node/ src/ Entity/ Node.php - Term::baseFieldDefinitions in core/
modules/ taxonomy/ src/ Entity/ Term.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EditorialContentEntityBase.php, line 19
Class
- EditorialContentEntityBase
- Provides a base entity class with extended revision and publishing support.
Namespace
Drupal\Core\EntityCode
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields = parent::baseFieldDefinitions($entity_type);
// Add the revision metadata fields.
$fields += static::revisionLogBaseFieldDefinitions($entity_type);
// Add the published field.
$fields += static::publishedBaseFieldDefinitions($entity_type);
return $fields;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.