function BaseFieldOverride::getBaseFieldDefinition
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::getBaseFieldDefinition()
- 10 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::getBaseFieldDefinition()
- 11.x core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\BaseFieldOverride::getBaseFieldDefinition()
Gets the base field definition.
Return value
\Drupal\Core\Field\BaseFieldDefinition
1 call to BaseFieldOverride::getBaseFieldDefinition()
- BaseFieldOverride::preSave in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php
File
-
core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php, line 162
Class
- BaseFieldOverride
- Defines the base field override entity.
Namespace
Drupal\Core\Field\EntityCode
protected function getBaseFieldDefinition() {
if (!isset($this->baseFieldDefinition)) {
$fields = \Drupal::service('entity_field.manager')->getBaseFieldDefinitions($this->entity_type);
$this->baseFieldDefinition = $fields[$this->getName()];
}
return $this->baseFieldDefinition;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.