function ConfigCrudEvent::isChanged
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Config/ConfigCrudEvent.php \Drupal\Core\Config\ConfigCrudEvent::isChanged()
- 10 core/lib/Drupal/Core/Config/ConfigCrudEvent.php \Drupal\Core\Config\ConfigCrudEvent::isChanged()
- 11.x core/lib/Drupal/Core/Config/ConfigCrudEvent.php \Drupal\Core\Config\ConfigCrudEvent::isChanged()
Checks to see if the provided configuration key's value has changed.
Parameters
string $key: The configuration key to check if it has changed.
Return value
bool
File
-
core/
lib/ Drupal/ Core/ Config/ ConfigCrudEvent.php, line 47
Class
- ConfigCrudEvent
- Wraps a configuration event for event listeners.
Namespace
Drupal\Core\ConfigCode
public function isChanged($key) {
return $this->config
->get($key) !== $this->config
->getOriginal($key);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.