public function DataReferenceBase::getValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getValue()
Gets the data value.
Return value
mixed
Overrides TypedData::getValue
2 calls to DataReferenceBase::getValue()
- EntityReference::getString in core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ EntityReference.php - Returns a string representation of the data.
- EntityReference::getTargetIdentifier in core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ EntityReference.php - Gets the identifier of the referenced data.
File
- core/
lib/ Drupal/ Core/ TypedData/ DataReferenceBase.php, line 41 - Contains \Drupal\Core\TypedData\DataReferenceBase.
Class
- DataReferenceBase
- Base class for typed data references.
Namespace
Drupal\Core\TypedDataCode
public function getValue() {
if ($target = $this
->getTarget()) {
return $target
->getValue();
}
}