protected function BaseFieldOverride::getBaseFieldDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 154 - Contains \Drupal\Core\Field\Entity\BaseFieldOverride.
Class
- BaseFieldOverride
- Defines the base field override entity.
Namespace
Drupal\Core\Field\EntityCode
protected function getBaseFieldDefinition() {
if (!isset($this->baseFieldDefinition)) {
$fields = $this
->entityManager()
->getBaseFieldDefinitions($this->entity_type);
$this->baseFieldDefinition = $fields[$this
->getName()];
}
return $this->baseFieldDefinition;
}