public function DataReferenceInterface::getTargetIdentifier in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 31 - Contains \Drupal\Core\TypedData\DataReferenceInterface.
Class
- DataReferenceInterface
- Interface for typed data references.
Namespace
Drupal\Core\TypedDataCode
public function getTargetIdentifier();