You are here

public static function GeofieldWidget::create in farmOS 2.x

File

modules/core/map/src/Plugin/Field/FieldWidget/GeofieldWidget.php, line 86

Class

GeofieldWidget
Plugin implementation of the map 'geofield' widget.

Namespace

Drupal\farm_map\Plugin\Field\FieldWidget

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings'], $container
    ->get('geofield.geophp'), $container
    ->get('geofield.wkt_generator'), $container
    ->get('plugin.manager.geofield_backend'), $container
    ->get('file_system'));
}