Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigCrudEvent.php

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

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal