public function ConfigEntityAdapter::onChange in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter::onChange()
React to changes to a child property or item.
Note that this is invoked after any changes have been applied.
Parameters
$name: The name of the property or the delta of the list item which is changed.
Overrides EntityAdapter::onChange
File
- core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ ConfigEntityAdapter.php, line 62
Class
- ConfigEntityAdapter
- Enhances EntityAdapter for config entities.
Namespace
Drupal\Core\Entity\Plugin\DataTypeCode
public function onChange($property_name) {
if (isset($this->entity)) {
// Let the entity know of any changes.
$this
->getConfigTypedData()
->onChange($property_name);
}
}