function EntityReference::getTargetDefinition
Gets the definition of the referenced entity.
Return value
\Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface The reference target's definition.
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ EntityReference.php, line 49
Class
- EntityReference
- Defines an 'entity_reference' data type.
Namespace
Drupal\Core\Entity\Plugin\DataTypeCode
public function getTargetDefinition() {
return $this->definition
->getTargetDefinition();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.