summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/ListInterface.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2013-04-26 08:32:17 (GMT)
committerNathaniel Catchpole2013-04-26 08:32:17 (GMT)
commitbba539c65f01e67cef3c878a680572a30c9554a8 (patch)
treef03667849c32700fbea58d68a461ef14f66d5496 /core/lib/Drupal/Core/TypedData/ListInterface.php
parent288f240c1818aeca8179981c6afd828bbf3d8a09 (diff)
#1869562 by fago, berdir, dawehner: Avoid instantiating EntityNG field value objects by default.
Diffstat (limited to 'core/lib/Drupal/Core/TypedData/ListInterface.php')
-rw-r--r--core/lib/Drupal/Core/TypedData/ListInterface.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/TypedData/ListInterface.php b/core/lib/Drupal/Core/TypedData/ListInterface.php
index f6f906b..2711cd4 100644
--- a/core/lib/Drupal/Core/TypedData/ListInterface.php
+++ b/core/lib/Drupal/Core/TypedData/ListInterface.php
@@ -20,7 +20,7 @@ use Traversable;
* When implementing this interface which extends Traversable, make sure to list
* IteratorAggregate or Iterator before this interface in the implements clause.
*/
-interface ListInterface extends ArrayAccess, Countable, Traversable {
+interface ListInterface extends TypedDataInterface, ArrayAccess, Countable, Traversable {
/**
* Determines whether the list contains any non-empty items.
@@ -37,4 +37,14 @@ interface ListInterface extends ArrayAccess, Countable, Traversable {
* The data definition of contained items.
*/
public function getItemDefinition();
+
+ /**
+ * React to changes to a child item.
+ *
+ * Note that this is invoked before any changes are applied.
+ *
+ * @param $delta
+ * The delta of the item which is changed.
+ */
+ public function onChange($delta);
}