You are here

public function ConfigActionsService::saveAll in Config Actions 8

Force saving all cached sources.

Overrides ConfigActionsServiceInterface::saveAll

2 calls to ConfigActionsService::saveAll()
ConfigActionsService::clearSourceCache in src/ConfigActionsService.php
Clear the internal cache of source plugins. Saves any changed data first via SaveAll.
ConfigActionsService::processAction in src/ConfigActionsService.php
Process a single config_actions action

File

src/ConfigActionsService.php, line 230

Class

ConfigActionsService
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

public function saveAll() {
  foreach ($this->sourceCache as $key => $plugin) {
    if (isset($plugin) && $plugin
      ->isChanged()) {
      $plugin
        ->save($plugin
        ->getData());
    }
  }
}