DataReferenceBase::getValue

public DataReferenceBase::getValue()

Gets the data value.

Return value

mixed

Overrides TypedData::getValue

File

core/lib/Drupal/Core/TypedData/DataReferenceBase.php, line 36

Class

DataReferenceBase
Base class for typed data references.

Namespace

Drupal\Core\TypedData

Code

public function getValue() {
  if ($target = $this->getTarget()) {
    return $target->getValue();
  }
}
doc_Drupal
2016-10-29 09:00:14
Comments
Leave a Comment

Please login to continue.