interface DataReferenceInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/DataReferenceInterface.php \Drupal\Core\TypedData\DataReferenceInterface
Interface for typed data references.
Hierarchy
- interface \Drupal\Core\TypedData\DataReferenceInterface
Expanded class hierarchy of DataReferenceInterface
All classes that implement DataReferenceInterface
See also
\Drupal\Core\TypedData\DataReferenceDefinitionInterface
File
- core/
lib/ Drupal/ Core/ TypedData/ DataReferenceInterface.php, line 15 - Contains \Drupal\Core\TypedData\DataReferenceInterface.
Namespace
Drupal\Core\TypedDataView source
interface DataReferenceInterface {
/**
* Gets the referenced data.
*
* @return \Drupal\Core\TypedData\TypedDataInterface|null
* The referenced typed data object, or NULL if the reference is unset.
*/
public function getTarget();
/**
* Gets the identifier of the referenced data.
*
* @return int|string|null
* The identifier of the referenced data, or NULL if the reference is unset.
*/
public function getTargetIdentifier();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataReferenceInterface:: |
public | function | Gets the referenced data. | 1 |
DataReferenceInterface:: |
public | function | Gets the identifier of the referenced data. | 2 |