/**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrateProcessInterface $migration_plugin, MenuLinkManagerInterface $menu_link_manager, EntityStorageInterface $menu_link_storage)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->migrationPlugin = $migration_plugin;
     $this->menuLinkManager = $menu_link_manager;
     $this->menuLinkStorage = $menu_link_storage;
 }
Example #2
0
 /**
  * Constructs a file_copy process plugin.
  *
  * @param array $configuration
  *   The plugin configuration.
  * @param string $plugin_id
  *   The plugin ID.
  * @param mixed $plugin_definition
  *   The plugin definition.
  * @param \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrappers
  *   The stream wrapper manager service.
  * @param \Drupal\Core\File\FileSystemInterface $file_system
  *   The file system service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system)
 {
     $configuration += array('move' => FALSE, 'rename' => FALSE, 'reuse' => FALSE);
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->streamWrapperManager = $stream_wrappers;
     $this->fileSystem = $file_system;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     if (!isset(static::$timezones)) {
         static::$timezones = system_time_zones();
     }
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, MigratePluginManager $process_plugin_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->blockContentStorage = $storage;
     $this->migration = $migration;
     $this->processPluginManager = $process_plugin_manager;
 }
Example #5
0
 /**
  * Constructs a download process plugin.
  *
  * @param array $configuration
  *   The plugin configuration.
  * @param string $plugin_id
  *   The plugin ID.
  * @param mixed $plugin_definition
  *   The plugin definition.
  * @param \Drupal\Core\File\FileSystemInterface $file_system
  *   The file system service.
  * @param \GuzzleHttp\Client $http_client
  *   The HTTP client.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, FileSystemInterface $file_system, Client $http_client)
 {
     $configuration += ['rename' => FALSE, 'guzzle_options' => []];
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->fileSystem = $file_system;
     $this->httpClient = $http_client;
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, MigrationPluginManagerInterface $migration_plugin_manager, MigratePluginManager $process_plugin_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->migrationPluginManager = $migration_plugin_manager;
     $this->migration = $migration;
     $this->processPluginManager = $process_plugin_manager;
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, MigratePluginManager $process_plugin_manager)
 {
     if (empty($configuration['migration']) || !is_string($configuration['migration'])) {
         throw new MigrateException('Migration is not defined or is not a string.');
     }
     $this->migrationStorage = $storage;
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, MigrateProcessInterface $migration_plugin)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->moduleHandler = $module_handler;
     $this->migrationPlugin = $migration_plugin;
     if (isset($configuration['skip_php'])) {
         $this->skipPHP = $configuration['skip_php'];
     }
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, MigrateProcessInterface $migration_plugin)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->moduleHandler = $module_handler;
     $this->migrationPlugin = $migration_plugin;
 }
Example #10
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, MigrateProcessInterface $migration_plugin)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->migration = $migration;
     $this->migrationPlugin = $migration_plugin;
 }
Example #11
0
 /**
  * Constructs a BlockTheme object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\migrate\Entity\MigrationInterface $migration
  *   The migration entity.
  * @param \Drupal\Core\Config\Config $theme_config
  *   The system.theme configuration factory object.
  * @param array $themes
  *   The list of themes available on the destination.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, Config $theme_config, array $themes)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
     $this->themeConfig = $theme_config;
     $this->themes = $themes;
 }
Example #12
0
 /**
  * Constructs a BlockRegion plugin instance.
  *
  * @param array $configuration
  *   The plugin configuration.
  * @param string $plugin_id
  *   The plugin ID.
  * @param mixed $plugin_definition
  *   The plugin definition.
  * @param array $regions
  *   Array of region maps, keyed by theme.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, array $regions)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->regions = $regions;
 }
Example #13
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, PathValidatorInterface $pathValidator)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->migration = $migration;
     $this->pathValidator = $pathValidator;
 }
Example #14
0
 /**
  * Constructs a DisqusEntityType object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin ID for the plugin instance.
  * @param array $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
  *   The entity type manager service.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->entityTypeManager = $entity_type_manager;
 }
Example #15
0
 /**
  * Constructs a UserLangcode object.
  *
  * @param array $configuration
  *   Plugin configuration.
  * @param string $plugin_id
  *   The plugin ID.
  * @param mixed $plugin_definition
  *   The plugin definiiton.
  * @param \Drupal\Core\Language\LanguageManager $language_manager
  *   The language manager service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, LanguageManager $language_manager) {
   parent::__construct($configuration, $plugin_id, $plugin_definition);
   $this->languageManager = $language_manager;
 }
Example #16
0
 /**
  * Constructs a MachineName plugin.
  *
  * @param array $configuration
  *   The plugin configuration.
  * @param string $plugin_id
  *   The plugin ID.
  * @param mixed $plugin_definition
  *   The plugin definition.
  * @param \Drupal\Component\Transliteration\TransliterationInterface $transliteration
  *   The transliteration service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, TransliterationInterface $transliteration)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->transliteration = $transliteration;
 }
Example #17
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $storage, MigrateProcessInterface $migration_plugin)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->blockContentStorage = $storage;
     $this->migrationPlugin = $migration_plugin;
 }