public function DataReferenceBase::getValue in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getValue()
- 9 core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getValue()
Gets the data value.
Return value
mixed The data value.
Overrides TypedData::getValue
File
- core/
lib/ Drupal/ Core/ TypedData/ DataReferenceBase.php, line 36
Class
- DataReferenceBase
- Base class for typed data references.
Namespace
Drupal\Core\TypedDataCode
public function getValue() {
if ($target = $this
->getTarget()) {
return $target
->getValue();
}
}