abstract class FieldableEntity

Base Class for Paragraphs FieldableEntity migrate source plugins.

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

Hierarchy

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

Expanded class hierarchy of FieldableEntity

File

paragraphs/src/Plugin/migrate/source/d7/FieldableEntity.php, line 18

Namespace

Drupal\paragraphs\Plugin\migrate\source\d7
View source
abstract class FieldableEntity extends MigrateFieldableEntity 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