public function GeofieldWidget::__construct in farmOS 2.x
GeofieldWidget constructor.
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.
array $third_party_settings: Any third party settings settings.
\Drupal\geofield\GeoPHP\GeoPHPInterface $geophp_wrapper: The geoPhpWrapper.
\Drupal\geofield\WktGeneratorInterface $wkt_generator: The WKT format Generator service.
\Drupal\geofield\Plugin\GeofieldBackendManager $geofield_backend_manager: The geofieldBackendManager.
\Drupal\Core\File\FileSystem $file_system: The file system service.
File
- modules/
core/ map/ src/ Plugin/ Field/ FieldWidget/ GeofieldWidget.php, line 78
Class
- GeofieldWidget
- Plugin implementation of the map 'geofield' widget.
Namespace
Drupal\farm_map\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, GeoPHPInterface $geophp_wrapper, WktGeneratorInterface $wkt_generator, GeofieldBackendManager $geofield_backend_manager, FileSystem $file_system) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings, $geophp_wrapper, $wkt_generator, $geofield_backend_manager);
$this->fileSystem = $file_system;
}