Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state);
     $this->table_name = $this->configuration['table_name'];
     $this->fields_list = $this->configuration['fields_list'];
     if (!empty($this->configuration['ids'])) {
         $this->ids = $this->configuration['ids'];
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state);
     $this->entityManager = $entity_manager;
 }