function BaseFieldDefinition::getTargetEntityTypeId
Same name in other branches
- 9 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::getTargetEntityTypeId()
- 10 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::getTargetEntityTypeId()
- 11.x core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::getTargetEntityTypeId()
Overrides FieldDefinitionInterface::getTargetEntityTypeId
3 calls to BaseFieldDefinition::getTargetEntityTypeId()
- BaseFieldDefinition::getConfig in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Gets an object that can be saved in configuration.
- BaseFieldDefinition::getUniqueIdentifier in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns a unique identifier for the field.
- BaseFieldDefinition::getUniqueStorageIdentifier in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns a unique identifier for the field storage.
File
-
core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php, line 668
Class
- BaseFieldDefinition
- A class for defining entity fields.
Namespace
Drupal\Core\FieldCode
public function getTargetEntityTypeId() {
return isset($this->definition['entity_type']) ? $this->definition['entity_type'] : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.