Version 1
[yaffs-website] / web / core / lib / Drupal / Core / TypedData / DataReferenceInterface.php
1 <?php
2
3 namespace Drupal\Core\TypedData;
4
5 /**
6  * Interface for typed data references.
7  *
8  * @see \Drupal\Core\TypedData\DataReferenceDefinitionInterface
9  */
10 interface DataReferenceInterface {
11
12   /**
13    * Gets the referenced data.
14    *
15    * @return \Drupal\Core\TypedData\TypedDataInterface|null
16    *   The referenced typed data object, or NULL if the reference is unset.
17    */
18   public function getTarget();
19
20   /**
21    * Gets the identifier of the referenced data.
22    *
23    * @return int|string|null
24    *   The identifier of the referenced data, or NULL if the reference is unset.
25    */
26   public function getTargetIdentifier();
27
28 }