public function Paragraphs::__construct in Paragraphs 8
Constructs the target plugin.
Overrides Text::__construct
File
- src/
Feeds/ Target/ Paragraphs.php, line 47
Class
- Paragraphs
- Feeds target plugin for Paragraphs fields.
Namespace
Drupal\paragraphs\Feeds\TargetCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $current_user);
$this->paragraphStorage = $entity_type_manager
->getStorage('paragraph');
$this->paragraphsTypeStorage = $entity_type_manager
->getStorage('paragraphs_type');
$this->fieldConfigStorage = $entity_type_manager
->getStorage('field_config');
}