Issue #2359449 by Jose Reyero: Fixed TypedData calls onChange() parent's method that is not part of the interface.
parent
5dcc99f934
commit
388758f46a
|
@ -100,13 +100,4 @@ interface ComplexDataInterface extends TraversableTypedDataInterface {
|
||||||
*/
|
*/
|
||||||
public function isEmpty();
|
public function isEmpty();
|
||||||
|
|
||||||
/**
|
|
||||||
* React to changes to a child property.
|
|
||||||
*
|
|
||||||
* Note that this is invoked after any changes have been applied.
|
|
||||||
*
|
|
||||||
* @param $property_name
|
|
||||||
* The name of the property which is changed.
|
|
||||||
*/
|
|
||||||
public function onChange($property_name);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,16 +38,6 @@ interface ListInterface extends TraversableTypedDataInterface, \ArrayAccess, \Co
|
||||||
*/
|
*/
|
||||||
public function getItemDefinition();
|
public function getItemDefinition();
|
||||||
|
|
||||||
/**
|
|
||||||
* React to changes to a child item.
|
|
||||||
*
|
|
||||||
* Note that this is invoked after any changes have been applied.
|
|
||||||
*
|
|
||||||
* @param $delta
|
|
||||||
* The delta of the item which is changed.
|
|
||||||
*/
|
|
||||||
public function onChange($delta);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the item at the specified position in this list.
|
* Returns the item at the specified position in this list.
|
||||||
*
|
*
|
||||||
|
|
|
@ -10,4 +10,16 @@ namespace Drupal\Core\TypedData;
|
||||||
/**
|
/**
|
||||||
* An interface for typed data objects that can be traversed.
|
* An interface for typed data objects that can be traversed.
|
||||||
*/
|
*/
|
||||||
interface TraversableTypedDataInterface extends TypedDataInterface, \Traversable {}
|
interface TraversableTypedDataInterface extends TypedDataInterface, \Traversable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* React to changes to a child property or item.
|
||||||
|
*
|
||||||
|
* Note that this is invoked after any changes have been applied.
|
||||||
|
*
|
||||||
|
* @param $name
|
||||||
|
* The name of the property or the delta of the list item which is changed.
|
||||||
|
*/
|
||||||
|
public function onChange($name);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue