public function GeolocationBlock::__construct in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Block/GeolocationBlock.php \Drupal\geolocation\Plugin\Block\GeolocationBlock::__construct()
Construct a GeoocationBlock instance.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
string $plugin_definition: The plugin implementation definition.
\Drupal\geolocation\MapProviderManager $map_provider_manager: The map provider manager.
\Drupal\geolocation\MapCenterManager $map_center_manager: The map center manager.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ GeolocationBlock.php, line 52
Class
- GeolocationBlock
- Exposes a map rendered as a block.
Namespace
Drupal\geolocation\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MapProviderManager $map_provider_manager, MapCenterManager $map_center_manager) {
$this->mapProviderManager = $map_provider_manager;
$this->mapCenterManager = $map_center_manager;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}