You are here

public function LingotekFakeConfigWrapper::save in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 3.3.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::save()
  2. 3.5.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::save()
  3. 3.6.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::save()
  4. 3.7.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::save()
  5. 3.8.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::save()

Saves the configuration object.

Must invalidate the cache tags associated with the configuration object.

Parameters

bool $has_trusted_data: Set to TRUE if the configuration data has already been checked to ensure it conforms to schema. Generally this is only used during module and theme installation.

Return value

$this

Overrides Config::save

See also

\Drupal\Core\Config\ConfigInstaller::createConfiguration()

File

tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php, line 164

Class

LingotekFakeConfigWrapper

Namespace

Drupal\lingotek_test

Code

public function save($has_trusted_data = FALSE) {
  if (!$this->config instanceof ImmutableConfig) {
    parent::save($has_trusted_data);
    $this->config
      ->save($has_trusted_data);
  }
  return $this;
}