Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentEntityBase.php

function ContentEntityBase::getFieldDefinitions

9 calls to ContentEntityBase::getFieldDefinitions()
ContentEntityBase::getFieldDefinition in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::getFields in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::getTranslatableFields in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::hasTranslationChanges in core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBase::removeTranslation in core/lib/Drupal/Core/Entity/ContentEntityBase.php

... See full list

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 709

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getFieldDefinitions() {
    if (!isset($this->fieldDefinitions)) {
        $this->fieldDefinitions = \Drupal::service('entity_field.manager')->getFieldDefinitions($this->entityTypeId, $this->bundle());
    }
    return $this->fieldDefinitions;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal