public function Geofield::__construct in Geofield 8
Same name in this branch
- 8 src/Feeds/Target/Geofield.php \Drupal\geofield\Feeds\Target\Geofield::__construct()
- 8 src/Plugin/migrate/process/GeoField.php \Drupal\geofield\Plugin\migrate\process\GeoField::__construct()
Constructs a Geofield FeedsTarget object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
Overrides FieldTargetBase::__construct
File
- src/
Feeds/ Target/ Geofield.php, line 49
Class
- Geofield
- Defines a geofield field mapper.
Namespace
Drupal\geofield\Feeds\TargetCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, MessengerInterface $messenger) {
$this->targetDefinition = $configuration['target_definition'];
$this->settings = $this->targetDefinition
->getFieldDefinition()
->getSettings();
$this->messenger = $messenger;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}