You are here

public function OpenlayersService::getSourceConfig in Openlayers 8.4

1 call to OpenlayersService::getSourceConfig()
OpenlayersService::getLayerConfig in src/OpenlayersService.php

File

src/OpenlayersService.php, line 377

Class

OpenlayersService
Provides an OpenlayersService class.

Namespace

Drupal\openlayers

Code

public function getSourceConfig($source_id) {
  $source_config = \Drupal::config('openlayers.openlayers_source.' . $source_id);
  $source_settings = [
    'type' => $source_config
      ->get('source_type'),
  ];
  return $source_settings;
}