public function GeolocationBlock::calculateDependencies in Geolocation Field 8.3
Same name and namespace in other branches
- 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\BlockCode
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;
}