DrupalSqlBase.php in Paragraphs 8
File
src/Plugin/migrate/source/DrupalSqlBase.php
View source
<?php
namespace Drupal\paragraphs\Plugin\migrate\source;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase as MigrateDrupalSqlBase;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface;
abstract class DrupalSqlBase extends MigrateDrupalSqlBase implements ConfigurableInterface {
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager);
$this
->setConfiguration($configuration);
}
public function getConfiguration() {
return $this->configuration;
}
public function setConfiguration(array $configuration) {
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
}
public function defaultConfiguration() {
return [];
}
}
Classes
Name |
Description |
DrupalSqlBase |
Base Class for Paragraphs DrupalSqlBase migrate source plugins. |