abstract class DrupalSqlBase

Base Class for Paragraphs DrupalSqlBase migrate source plugins.

Add and implement Configurable Plugin interface to Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase.

Hierarchy

  • class \Drupal\paragraphs\Plugin\migrate\source\DrupalSqlBase extends \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase implements \Drupal\Component\Plugin\ConfigurableInterface

Expanded class hierarchy of DrupalSqlBase

2 files declare their use of DrupalSqlBase
FieldCollectionType.php in paragraphs/src/Plugin/migrate/source/d7/FieldCollectionType.php
ParagraphsType.php in paragraphs/src/Plugin/migrate/source/d7/ParagraphsType.php

File

paragraphs/src/Plugin/migrate/source/DrupalSqlBase.php, line 18

Namespace

Drupal\paragraphs\Plugin\migrate\source
View source
abstract class DrupalSqlBase extends MigrateDrupalSqlBase implements ConfigurableInterface {

  /**
   * {@inheritdoc}
   */
  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);
  }

  /**
   * {@inheritdoc}
   */
  public function getConfiguration() {
    return $this->configuration;
  }

  /**
   * {@inheritdoc}
   */
  public function setConfiguration(array $configuration) {
    $this->configuration = NestedArray::mergeDeep($this
      ->defaultConfiguration(), $configuration);
  }

  /**
   * {@inheritdoc}
   */
  public function defaultConfiguration() {
    return [];
  }

}

Members