function CheckpointStorage::getOriginalConfig

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php \Drupal\Core\Config\Checkpoint\CheckpointStorage::getOriginalConfig()

Gets the original data from the configuration.

Parameters

\Drupal\Core\Config\StorableConfigBase $config: The config to get the original data from.

Return value

mixed The original data.

2 calls to CheckpointStorage::getOriginalConfig()
CheckpointStorage::onConfigRename in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php
Updates checkpoint when configuration is saved.
CheckpointStorage::onConfigSaveAndDelete in core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php
Updates checkpoint when configuration is saved.

File

core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php, line 424

Class

CheckpointStorage
Provides a config storage that can make checkpoints.

Namespace

Drupal\Core\Config\Checkpoint

Code

private function getOriginalConfig(StorableConfigBase $config) : mixed {
    if ($config instanceof Config) {
        return $config->getOriginal(apply_overrides: FALSE);
    }
    return $config->getOriginal();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.