You are here

public function GeolocationBlock::calculateDependencies in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/GeolocationBlock.php \Drupal\geolocation\Plugin\Block\GeolocationBlock::calculateDependencies()

Overrides BlockPluginTrait::calculateDependencies

File

src/Plugin/Block/GeolocationBlock.php, line 355

Class

GeolocationBlock
Exposes a map rendered as a block.

Namespace

Drupal\geolocation\Plugin\Block

Code

public function calculateDependencies() {
  $dependencies = parent::calculateDependencies();
  foreach ($this->configuration['locations'] as $index => $location) {
    $filter_format = FilterFormat::load($location['marker_content']['format']);
    $dependencies['config'][] = $filter_format
      ->getConfigDependencyName();
  }
  return $dependencies;
}