You are here

public function WrapperTarget::__construct in Feeds Paragraphs 8

Constructs a TargetBase 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.

Overrides FieldTargetBase::__construct

File

src/Feeds/Target/WrapperTarget.php, line 62

Class

WrapperTarget
Defines a wrapper target around a paragraph bundle's target field.

Namespace

Drupal\feeds_para_mapper\Feeds\Target

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, MessengerInterface $messenger, FeedsPluginManager $plugin_manager, Mapper $mapper) {
  $this->messenger = $messenger;
  $this->plugin_manager = $plugin_manager;
  $this->mapper = $mapper;
  $this->configuration = $configuration;
  $this->targetDefinition = $configuration['target_definition'];
  $this->field = $this->targetDefinition
    ->getFieldDefinition();
  $this->targetInstance = $this
    ->createTargetInstance();
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}