You are here

public function ConfigCrudEvent::isChanged in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 52
Contains \Drupal\Core\Config\ConfigCrudEvent.

Class

ConfigCrudEvent
Wraps a configuration event for event listeners.

Namespace

Drupal\Core\Config

Code

public function isChanged($key) {
  return $this->config
    ->get($key) !== $this->config
    ->getOriginal($key);
}