function DataReferenceBase::getTarget

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getTarget()
  2. 10 core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getTarget()
  3. 11.x core/lib/Drupal/Core/TypedData/DataReferenceBase.php \Drupal\Core\TypedData\DataReferenceBase::getTarget()

Overrides DataReferenceInterface::getTarget

2 calls to DataReferenceBase::getTarget()
DataReferenceBase::getValue in core/lib/Drupal/Core/TypedData/DataReferenceBase.php
Gets the data value.
LanguageReference::getTargetIdentifier in core/lib/Drupal/Core/TypedData/Plugin/DataType/LanguageReference.php
Gets the identifier of the referenced data.
1 method overrides DataReferenceBase::getTarget()
EntityReference::getTarget in core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
Gets the referenced data.

File

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

Class

DataReferenceBase
Base class for typed data references.

Namespace

Drupal\Core\TypedData

Code

public function getTarget() {
    return $this->target;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.