function Map::onChange
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::onChange()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::onChange()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php \Drupal\Core\TypedData\Plugin\DataType\Map::onChange()
Parameters
$property_name: The name of the property.
bool $notify: (optional) Whether to forward the notification to the parent. Defaults to TRUE. By passing FALSE, overrides of this method can re-use the logic of parent classes without triggering notification.
Overrides TraversableTypedDataInterface::onChange
4 calls to Map::onChange()
- DateTimeItem::onChange in core/
modules/ datetime/ src/ Plugin/ Field/ FieldType/ DateTimeItem.php - React to changes to a child property or item.
- LanguageItem::onChange in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ LanguageItem.php - React to changes to a child property or item.
- Map::set in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Map.php - Sets a property value.
- TextItemBase::onChange in core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php - React to changes to a child property or item.
3 methods override Map::onChange()
- DateTimeItem::onChange in core/
modules/ datetime/ src/ Plugin/ Field/ FieldType/ DateTimeItem.php - React to changes to a child property or item.
- LanguageItem::onChange in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ LanguageItem.php - React to changes to a child property or item.
- TextItemBase::onChange in core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php - React to changes to a child property or item.
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Map.php, line 231
Class
- Map
- The "map" data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function onChange($property_name, $notify = TRUE) {
// Notify the parent of changes.
if ($notify && isset($this->parent)) {
$this->parent
->onChange($this->name);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.