public function GeoPhpGeocodeFormatter::__construct in Geocoder 8.2
Same name and namespace in other branches
- 8.3 modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/GeoPhpGeocodeFormatter.php \Drupal\geocoder_geofield\Plugin\Field\FieldFormatter\GeoPhpGeocodeFormatter::__construct()
Constructs a GeocodeFormatterFile object.
Parameters
string $plugin_id: The plugin_id for the formatter.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.
array $settings: The formatter settings.
string $label: The formatter label display setting.
string $view_mode: The view mode.
array $third_party_settings: Any third party settings.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
\Drupal\geocoder\Geocoder $geocoder: The gecoder service.
\Drupal\geocoder\ProviderPluginManager $provider_plugin_manager: The provider plugin manager service.
\Drupal\geocoder\DumperPluginManager $dumper_plugin_manager: The dumper plugin manager service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The Link Generator service.
\Drupal\geocoder_field\PreprocessorPluginManager $preprocessor_manager: The Preprocessor Manager.
\Drupal\geofield\GeoPHP\GeoPHPInterface $geophp_wrapper: The geoPhpWrapper.
Overrides FileGeocodeFormatter::__construct
File
- modules/
geocoder_geofield/ src/ Plugin/ Field/ FieldFormatter/ GeoPhpGeocodeFormatter.php, line 72
Class
- GeoPhpGeocodeFormatter
- Abstract implementation of the GeoPhp Wrapper formatter for File fields.
Namespace
Drupal\geocoder_geofield\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, ConfigFactoryInterface $config_factory, Geocoder $geocoder, ProviderPluginManager $provider_plugin_manager, DumperPluginManager $dumper_plugin_manager, RendererInterface $renderer, LinkGeneratorInterface $link_generator, PreprocessorPluginManager $preprocessor_manager, GeoPHPInterface $geophp_wrapper) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $config_factory, $geocoder, $provider_plugin_manager, $dumper_plugin_manager, $renderer, $link_generator, $preprocessor_manager);
$this->geoPhpWrapper = $geophp_wrapper;
}