Skip to content
Snippets Groups Projects
Select Git revision
  • 8.7.x
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
41 results

Migration.php

Blame
  • catch's avatar
    Issue #3012001 by quietone, rkostov, ellenoise: Duplications within migration process plugin
    catch authored
    (cherry picked from commit ddfcac8d)
    4cbcc932
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Migration.php 18.96 KiB
    <?php
    
    namespace Drupal\migrate\Plugin;
    
    use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
    use Drupal\Core\Plugin\PluginBase;
    use Drupal\migrate\Exception\RequirementsException;
    use Drupal\migrate\MigrateException;
    use Drupal\migrate\MigrateSkipRowException;
    use Drupal\Component\Utility\NestedArray;
    use Symfony\Component\DependencyInjection\ContainerInterface;
    
    /**
     * Defines the Migration plugin.
     *
     * The migration process plugin represents one single migration and acts like a
     * container for the information about a single migration such as the source,
     * process and destination plugins.
     */
    class Migration extends PluginBase implements MigrationInterface, RequirementsInterface, ContainerFactoryPluginInterface {
    
      /**
       * The migration ID (machine name).
       *
       * @var string
       */
      protected $id;
    
      /**
       * The human-readable label for the migration.
       *
       * @var string
       */
      protected $label;
    
      /**
       * The plugin ID for the row.
       *
       * @var string
       */
      protected $row;
    
      /**
       * The source configuration, with at least a 'plugin' key.
       *
       * Used to initialize the $sourcePlugin.
       *
       * @var array
       */
      protected $source;
    
      /**
       * The source plugin.
       *
       * @var \Drupal\migrate\Plugin\MigrateSourceInterface
       */
      protected $sourcePlugin;
    
      /**
       * The configuration describing the process plugins.
       *
       * This is a strictly internal property and should not returned to calling
       * code, use getProcess() instead.
       *
       * @var array
       */
      protected $process = [];
    
      /**
       * The cached process plugins.