You are here

public function DashboardSettingsService::getBlockConfigurations in Content Planner 8

Get Block configurations.

Return value

array All block configurations.

2 calls to DashboardSettingsService::getBlockConfigurations()
DashboardSettingsService::getBlockConfiguration in src/DashboardSettingsService.php
Get the configuration of a specific block.
DashboardSettingsService::saveBlockConfiguration in src/DashboardSettingsService.php
Save configuration of a specific block.

File

src/DashboardSettingsService.php, line 47

Class

DashboardSettingsService
Class DashboardSettingsService.

Namespace

Drupal\content_planner

Code

public function getBlockConfigurations() {
  if ($settings = $this
    ->getSettings()) {
    if ($block_configurations = $settings
      ->get('blocks')) {
      return $block_configurations;
    }
  }
  return [];
}