function DataReferenceInterface::getTargetIdentifier
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/DataReferenceInterface.php \Drupal\Core\TypedData\DataReferenceInterface::getTargetIdentifier()
- 10 core/lib/Drupal/Core/TypedData/DataReferenceInterface.php \Drupal\Core\TypedData\DataReferenceInterface::getTargetIdentifier()
- 11.x core/lib/Drupal/Core/TypedData/DataReferenceInterface.php \Drupal\Core\TypedData\DataReferenceInterface::getTargetIdentifier()
Gets the identifier of the referenced data.
Return value
int|string|null The identifier of the referenced data, or NULL if the reference is unset.
1 call to DataReferenceInterface::getTargetIdentifier()
- DataReferenceBase::getString in core/
lib/ Drupal/ Core/ TypedData/ DataReferenceBase.php - Returns a string representation of the data.
2 methods override DataReferenceInterface::getTargetIdentifier()
- EntityReference::getTargetIdentifier in core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ EntityReference.php - Gets the identifier of the referenced data.
- LanguageReference::getTargetIdentifier in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ LanguageReference.php - Gets the identifier of the referenced data.
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataReferenceInterface.php, line 26
Class
- DataReferenceInterface
- Interface for typed data references.
Namespace
Drupal\Core\TypedDataCode
public function getTargetIdentifier();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.