ConfigCrudEvent::isChanged

public ConfigCrudEvent::isChanged($key)

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

Code

public function isChanged($key) {
  return $this->config->get($key) !== $this->config->getOriginal($key);
}
doc_Drupal
2016-10-29 08:52:16
Comments
Leave a Comment

Please login to continue.