You are here

public function DashboardSettingsService::saveBlockConfigurations in Content Planner 8

Save all block configurations.

Parameters

array $configuration: The config to save.

1 call to DashboardSettingsService::saveBlockConfigurations()
DashboardSettingsService::saveBlockConfiguration in src/DashboardSettingsService.php
Save configuration of a specific block.

File

src/DashboardSettingsService.php, line 116

Class

DashboardSettingsService
Class DashboardSettingsService.

Namespace

Drupal\content_planner

Code

public function saveBlockConfigurations(array $configuration) {
  $this->configFactory
    ->getEditable(self::CONFIG_NAME)
    ->set('blocks', $configuration)
    ->save();
}