function EditorialContentEntityBase::baseFieldDefinitions
Overrides ContentEntityBase::baseFieldDefinitions
5 calls to EditorialContentEntityBase::baseFieldDefinitions()
- BlockContent::baseFieldDefinitions in core/
modules/ block_content/ src/ Entity/ BlockContent.php  - Provides base field definitions for an entity type.
 - Media::baseFieldDefinitions in core/
modules/ media/ src/ Entity/ Media.php  - Provides base field definitions for an entity type.
 - MenuLinkContent::baseFieldDefinitions in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php  - Provides base field definitions for an entity type.
 - Node::baseFieldDefinitions in core/
modules/ node/ src/ Entity/ Node.php  - Provides base field definitions for an entity type.
 - Term::baseFieldDefinitions in core/
modules/ taxonomy/ src/ Entity/ Term.php  - Provides base field definitions for an entity type.
 
5 methods override EditorialContentEntityBase::baseFieldDefinitions()
- BlockContent::baseFieldDefinitions in core/
modules/ block_content/ src/ Entity/ BlockContent.php  - Provides base field definitions for an entity type.
 - Media::baseFieldDefinitions in core/
modules/ media/ src/ Entity/ Media.php  - Provides base field definitions for an entity type.
 - MenuLinkContent::baseFieldDefinitions in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php  - Provides base field definitions for an entity type.
 - Node::baseFieldDefinitions in core/
modules/ node/ src/ Entity/ Node.php  - Provides base field definitions for an entity type.
 - Term::baseFieldDefinitions in core/
modules/ taxonomy/ src/ Entity/ Term.php  - Provides base field definitions for an entity type.
 
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.