You are here

public function File::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 modules/geocoder_field/src/Plugin/Geocoder/Preprocessor/File.php \Drupal\geocoder_field\Plugin\Geocoder\Preprocessor\File::__construct()

Constructs a geocoder file field preprocessor constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Locale\CountryManagerInterface $country_manager: The Country Manager service.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

Overrides PreprocessorBase::__construct

File

modules/geocoder_field/src/Plugin/Geocoder/Preprocessor/File.php, line 46

Class

File
Provides a geocoder preprocessor plugin for file fields.

Namespace

Drupal\geocoder_field\Plugin\Geocoder\Preprocessor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CountryManagerInterface $country_manager, FileSystemInterface $file_system) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $country_manager);
  $this->fileSystem = $file_system;
}