3 namespace Drupal\Core\TypedData;
6 * Interface for typed data references.
8 * @see \Drupal\Core\TypedData\DataReferenceDefinitionInterface
10 interface DataReferenceInterface {
13 * Gets the referenced data.
15 * @return \Drupal\Core\TypedData\TypedDataInterface|null
16 * The referenced typed data object, or NULL if the reference is unset.
18 public function getTarget();
21 * Gets the identifier of the referenced data.
23 * @return int|string|null
24 * The identifier of the referenced data, or NULL if the reference is unset.
26 public function getTargetIdentifier();