You are here

public function DashboardSettingsService::getBlockConfiguration in Content Planner 8

Get the configuration of a specific block.

Parameters

string $block_id: The block id to retrieve the config for.

Return value

array|mixed The block configuration.

File

src/DashboardSettingsService.php, line 69

Class

DashboardSettingsService
Class DashboardSettingsService.

Namespace

Drupal\content_planner

Code

public function getBlockConfiguration($block_id) {
  if ($block_configurations = $this
    ->getBlockConfigurations()) {
    if (array_key_exists($block_id, $block_configurations)) {
      return $block_configurations[$block_id];
    }
  }
  return [];
}