function StorableConfigBase::save

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/StorableConfigBase.php \Drupal\Core\Config\StorableConfigBase::save()
  2. 10 core/lib/Drupal/Core/Config/StorableConfigBase.php \Drupal\Core\Config\StorableConfigBase::save()
  3. 11.x core/lib/Drupal/Core/Config/StorableConfigBase.php \Drupal\Core\Config\StorableConfigBase::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

See also

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

2 methods override StorableConfigBase::save()
Config::save in core/lib/Drupal/Core/Config/Config.php
Saves the configuration object.
LanguageConfigOverride::save in core/modules/language/src/Config/LanguageConfigOverride.php
Saves the configuration object.

File

core/lib/Drupal/Core/Config/StorableConfigBase.php, line 77

Class

StorableConfigBase
Provides a base class for configuration objects with storage support.

Namespace

Drupal\Core\Config

Code

public abstract function save($has_trusted_data = FALSE);

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