BaseFieldOverride::getBaseFieldDefinition

protected BaseFieldOverride::getBaseFieldDefinition()

Gets the base field definition.

Return value

\Drupal\Core\Field\BaseFieldDefinition

File

core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 149

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

protected function getBaseFieldDefinition() {
  if (!isset($this->baseFieldDefinition)) {
    $fields = $this->entityManager()->getBaseFieldDefinitions($this->entity_type);
    $this->baseFieldDefinition = $fields[$this->getName()];
  }
  return $this->baseFieldDefinition;
}
doc_Drupal
2016-10-29 08:45:52
Comments
Leave a Comment

Please login to continue.