You are here

public function ConfigEntityStorageDecorator::importUpdate in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::importUpdate()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::importUpdate()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::importUpdate()

Updates entities upon synchronizing configuration changes.

Parameters

string $name: The name of the configuration object.

\Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data.

\Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data.

Throws

\Drupal\Core\Config\ConfigImporterException Thrown when the config entity that should be updated can not be found.

Overrides ImportableEntityStorageInterface::importUpdate

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 192

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function importUpdate($name, Config $new_config, Config $old_config) {
  $this
    ->getOriginalObject()
    ->importUpdate($name, $new_config, $old_config);
}