public function GeoJson::__construct in Views GeoJSON 8
GeoJson constructor.
Parameters
array $configuration: The configuration.
string $plugin_id: The plugin id.
array $plugin_definition: The plugin definition.
\Symfony\Component\Serializer\SerializerInterface $serializer: The serializer.
array $serializer_formats: The serializer formats.
Overrides PluginBase::__construct
File
- src/
Plugin/ views/ style/ GeoJson.php, line 110
Class
- GeoJson
- Style plugin to render view as GeoJSON code.
Namespace
Drupal\views_geojson\Plugin\views\styleCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, SerializerInterface $serializer, array $serializer_formats, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->definition = $plugin_definition + $configuration;
$this->serializer = $serializer;
$this->formats = [
'json',
'html',
];
$this->moduleHandler = $module_handler;
}