function ConfigEntityAdapter::onChange

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\DataType

Code

public function onChange($property_name) {
  if (isset($this->entity)) {
    // Let the entity know of any changes.
    $this->getConfigTypedData()
      ->onChange($property_name);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.