Issue #3421016 by quietone, godotislate: Convert MigrateProcessPlugin plugin discovery to attributes
							parent
							
								
									38e722aa6f
								
							
						
					
					
						commit
						8c0975a467
					
				| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\block\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Core\Entity\EntityStorageInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -11,11 +12,7 @@ use Drupal\migrate\ProcessPluginBase;
 | 
			
		|||
use Drupal\migrate\Row;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "block_plugin_id"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('block_plugin_id')]
 | 
			
		||||
class BlockPluginId extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,16 +3,13 @@
 | 
			
		|||
namespace Drupal\block\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\migrate\process\StaticMap;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "block_region"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('block_region')]
 | 
			
		||||
class BlockRegion extends StaticMap implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
namespace Drupal\block\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Block\BlockPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -10,10 +11,9 @@ use Drupal\migrate\Row;
 | 
			
		|||
// cspell:ignore whois
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "block_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 * Determines the block settings.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('block_settings')]
 | 
			
		||||
class BlockSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,17 +3,14 @@
 | 
			
		|||
namespace Drupal\block\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Config\Config;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "block_theme"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('block_theme')]
 | 
			
		||||
class BlockTheme extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\block\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Core\Extension\ModuleHandlerInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -12,11 +13,7 @@ use Drupal\migrate\ProcessPluginBase;
 | 
			
		|||
use Drupal\migrate\Row;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "block_visibility"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('block_visibility')]
 | 
			
		||||
class BlockVisibility extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
namespace Drupal\block\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -30,11 +31,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * the source row.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "roles_lookup"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('roles_lookup')]
 | 
			
		||||
class RolesLookup extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\field\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\migrate\process\StaticMap;
 | 
			
		||||
| 
						 | 
				
			
			@ -11,11 +12,7 @@ use Drupal\migrate\Row;
 | 
			
		|||
use Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_type"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_type')]
 | 
			
		||||
class FieldType extends StaticMap implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\field\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -36,11 +37,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 * @see \Drupal\migrate_drupal\Plugin\MigrateFieldInterface;
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "process_field"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('process_field')]
 | 
			
		||||
class ProcessField extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Set the default field settings.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_formatter_settings_defaults"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_formatter_settings_defaults')]
 | 
			
		||||
class FieldFormatterSettingsDefaults extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,10 +10,9 @@ use Drupal\migrate\Row;
 | 
			
		|||
// cspell:ignore imagefield
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_instance_defaults"
 | 
			
		||||
 * )
 | 
			
		||||
 * Determines the default field settings.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d6_field_instance_defaults')]
 | 
			
		||||
class FieldInstanceDefaults extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Determines the settings property and translation for boolean fields.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_instance_option_translation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "d6_field_instance_option_translation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FieldInstanceOptionTranslation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,10 +10,9 @@ use Drupal\migrate\Row;
 | 
			
		|||
// cspell:ignore filefield imagefield
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_field_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 * Determines the field instance settings.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d6_field_field_settings')]
 | 
			
		||||
class FieldInstanceSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -10,11 +11,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Get the field instance widget settings.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_instance_widget_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_instance_widget_settings')]
 | 
			
		||||
class FieldInstanceWidgetSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Determines the allowed values translation for select lists.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_option_translation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "d6_field_option_translation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FieldOptionTranslation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -10,11 +11,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Get the field settings.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_settings')]
 | 
			
		||||
class FieldSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,11 +10,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Gives us a chance to set per field defaults.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_type_defaults"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d6_field_type_defaults')]
 | 
			
		||||
class FieldTypeDefaults extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -50,11 +51,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *
 | 
			
		||||
 * @see core/modules/comment/migrations/d7_comment_type.yml
 | 
			
		||||
 * @see core/modules/field/migrations/d7_field_instance.yml
 | 
			
		||||
 *
 | 
			
		||||
 * * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_bundle"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_bundle')]
 | 
			
		||||
class FieldBundle extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,15 +2,12 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_instance_defaults"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d7_field_instance_defaults')]
 | 
			
		||||
class FieldInstanceDefaults extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Determines the settings property and translation for boolean fields.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_instance_option_translation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "d7_field_instance_option_translation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FieldInstanceOptionTranslation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,10 +10,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
// cspell:ignore entityreference
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_instance_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 * Determines the field instance settings.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
 id: "d7_field_instance_settings"
 | 
			
		||||
)]
 | 
			
		||||
class FieldInstanceSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Determines the allowed values translation for select lists.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_option_translation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "d7_field_option_translation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FieldOptionTranslation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,15 +2,12 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d7_field_settings')]
 | 
			
		||||
class FieldSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\field\Plugin\migrate\process\d7;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Gives us a chance to set per field defaults.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d7_field_type_defaults"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d7_field_type_defaults')]
 | 
			
		||||
class FieldTypeDefaults extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,16 +5,13 @@ namespace Drupal\file\Plugin\migrate\process\d6;
 | 
			
		|||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_field_file"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d6_field_file')]
 | 
			
		||||
class FieldFile extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\file\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Process the file URL into a D8 compatible URL.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "file_uri"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('file_uri')]
 | 
			
		||||
class FileUri extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@ use Drupal\Component\Plugin\PluginManagerInterface;
 | 
			
		|||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\Core\StringTranslation\TranslationInterface;
 | 
			
		||||
use Drupal\filter\Plugin\FilterInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\migrate\process\StaticMap;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -19,10 +20,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
// cspell:ignore shortcode spamspan typogrify wordfilter xbbcode
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "filter_id"
 | 
			
		||||
 * )
 | 
			
		||||
 * Determines the filter ID.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('filter_id')]
 | 
			
		||||
class FilterID extends StaticMap implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\filter\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -10,12 +11,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * Adds the default allowed attributes to filter_html's allowed_html setting.
 | 
			
		||||
 *
 | 
			
		||||
 * E.g. map '<a>' to '<a href hreflang dir>'.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "filter_settings",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "filter_settings",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FilterSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
namespace Drupal\filter\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -33,12 +34,11 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *  filter formats for a role.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "filter_format_permission",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "filter_format_permission",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class FilterFormatPermission extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\forum\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -26,11 +27,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 *     plugin: forum_vocabulary
 | 
			
		||||
 *     machine_name: taxonomy_forums
 | 
			
		||||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "forum_vocabulary"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('forum_vocabulary')]
 | 
			
		||||
class ForumVocabulary extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\image\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,10 +10,9 @@ use Drupal\migrate\Row;
 | 
			
		|||
// cspell:ignore imagecache
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_imagecache_actions"
 | 
			
		||||
 * )
 | 
			
		||||
 * Defines the image cache actions migrate process plugin.
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('d6_imagecache_actions')]
 | 
			
		||||
class ImageCacheActions extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\language\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -14,11 +15,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * - The language content type, e.g. '1'
 | 
			
		||||
 * - The entity_translation_entity_types, an array of entity types.
 | 
			
		||||
 * - An entity type used with entity translation, e.g. comment.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "content_translation_enabled_setting"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('content_translation_enabled_setting')]
 | 
			
		||||
class ContentTranslationEnabledSetting extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\language\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\migrate\process\ArrayBuild;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * This plugin makes sure that no domain is empty if domain negotiation is used.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "language_domains",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "language_domains",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class LanguageDomains extends ArrayBuild {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\language\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,12 +10,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Processes the arrays for the language types' negotiation methods and weights.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "language_negotiation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "language_negotiation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class LanguageNegotiation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\language\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,12 +10,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Processes the array for the language types.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "language_types",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "language_types",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class LanguageTypes extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\link\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -32,11 +33,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 *     uri_scheme: 'https://'
 | 
			
		||||
 *     source: field_link
 | 
			
		||||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "field_link"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('field_link')]
 | 
			
		||||
class FieldLink extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\menu_link_content\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -19,12 +20,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * This will convert the query options of the link.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "link_options",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "link_options",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class LinkOptions extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,7 @@ namespace Drupal\menu_link_content\Plugin\migrate\process;
 | 
			
		|||
use Drupal\Core\Entity\EntityTypeManagerInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\Core\Url;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -38,11 +39,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * without validating if the resulting URI is valid. For example, if the
 | 
			
		||||
 * 'link_path' property is 'node/12', the uri property value of link will be
 | 
			
		||||
 * 'entity:node/12'.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "link_uri"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('link_uri')]
 | 
			
		||||
class LinkUri extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -68,12 +69,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "array_build",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "array_build",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class ArrayBuild extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -72,11 +73,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * This will remove the trailing '/', if any, from a URL.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "callback"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('callback')]
 | 
			
		||||
class Callback extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -50,12 +51,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * property is "Rosa", new_text_field will be "Rosa/Parks".
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "concat",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "concat",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class Concat extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -40,12 +41,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * not found, set the destination property uid to 44.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "default_value",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "default_value",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class DefaultValue extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\Core\File\FileSystemInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
| 
						 | 
				
			
			@ -57,11 +58,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * destination URI is unique. If a file with the same name exists at the
 | 
			
		||||
 * destination, a numbered suffix like '_0' will be appended to make it unique.
 | 
			
		||||
 * The destination URI is saved in a file entity.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "download"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('download')]
 | 
			
		||||
class Download extends FileProcessBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\Core\Entity\EntityInterface;
 | 
			
		||||
use Drupal\Core\Entity\EntityStorageInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -21,11 +22,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *     source: tid
 | 
			
		||||
 *     entity_type: taxonomy_term
 | 
			
		||||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *  id = "entity_exists"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
*/
 | 
			
		||||
#[MigrateProcess('entity_exists')]
 | 
			
		||||
class EntityExists extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\Component\Utility\NestedArray;
 | 
			
		||||
use Drupal\Component\Utility\Variable;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -56,12 +57,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * return "Default title".
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "extract",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "extract",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class Extract extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\Core\File\Exception\FileException;
 | 
			
		||||
use Drupal\Core\File\FileSystemInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -46,11 +47,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "file_copy"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('file_copy')]
 | 
			
		||||
class FileCopy extends FileProcessBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -36,12 +37,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * a three items array [bar, alpha, beta], suitable for import.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "flatten",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "flatten",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class Flatten extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\Component\Datetime\DateTimePlus;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -85,11 +86,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * @see \Drupal\Component\Datetime\DateTimePlus::__construct()
 | 
			
		||||
 * @see \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "format_date"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('format_date')]
 | 
			
		||||
class FormatDate extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -86,12 +87,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * This should occur extremely rarely.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "get",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "get",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class Get extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -20,11 +21,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "log"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('log')]
 | 
			
		||||
class Log extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,7 @@ namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		|||
use Drupal\Component\Transliteration\TransliterationInterface;
 | 
			
		||||
use Drupal\Core\Language\LanguageInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
| 
						 | 
				
			
			@ -57,11 +58,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * is 'áéí!.jpg' then the destination value of bar will be 'aei_.jpg'.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "machine_name"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('machine_name')]
 | 
			
		||||
class MachineName extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Core\Entity\EntityTypeManagerInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,11 +77,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\migrate\process\MakeUniqueBase
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "make_unique_entity_field"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('make_unique_entity_field')]
 | 
			
		||||
class MakeUniqueEntityField extends MakeUniqueBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ use Drupal\Core\Entity\EntityStorageInterface;
 | 
			
		|||
use Drupal\Core\Menu\MenuLinkManagerInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\Core\Url;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\MigrateSkipRowException;
 | 
			
		||||
| 
						 | 
				
			
			@ -53,11 +54,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 *
 | 
			
		||||
 * @see https://www.drupal.org/docs/8/api/menu-api
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "menu_link_parent"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('menu_link_parent')]
 | 
			
		||||
class MenuLinkParent extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateLookupInterface;
 | 
			
		||||
use Drupal\migrate\MigrateSkipRowException;
 | 
			
		||||
| 
						 | 
				
			
			@ -120,11 +121,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 * @see https://www.drupal.org/project/drupal/issues/3246666
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "migration_lookup"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('migration_lookup')]
 | 
			
		||||
class MigrationLookup extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -29,11 +30,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 *     - baz
 | 
			
		||||
 * @endcode
 | 
			
		||||
 * This plugin will return the equivalent of `foo ?? bar ?? baz`
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "null_coalesce"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('null_coalesce')]
 | 
			
		||||
class NullCoalesce extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,7 @@ namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		|||
use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		||||
use Drupal\Core\Path\PathValidatorInterface;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Plugin\MigrationInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -50,11 +51,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * (user/login) with a query string of "destination=node/1".
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "route"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('route')]
 | 
			
		||||
class Route extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			@ -88,6 +86,7 @@ class Route extends ProcessPluginBase implements ContainerFactoryPluginInterface
 | 
			
		|||
      $plugin_definition,
 | 
			
		||||
      $migration,
 | 
			
		||||
      $container->get('path.validator')
 | 
			
		||||
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -73,11 +74,8 @@ use Drupal\migrate\MigrateSkipRowException;
 | 
			
		|||
 * source.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "skip_on_empty"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('skip_on_empty')]
 | 
			
		||||
class SkipOnEmpty extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -36,12 +37,11 @@ use Drupal\migrate\MigrateSkipRowException;
 | 
			
		|||
 * message table.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "skip_row_if_not_set",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "skip_row_if_not_set",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class SkipRowIfNotSet extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Component\Utility\NestedArray;
 | 
			
		||||
use Drupal\Component\Utility\Variable;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -140,11 +141,8 @@ use Drupal\migrate\MigrateSkipRowException;
 | 
			
		|||
 *
 | 
			
		||||
 * @see https://www.drupal.org/project/drupal/issues/2827897
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "static_map"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('static_map')]
 | 
			
		||||
class StaticMap extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateSkipRowException;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -166,12 +167,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * @see \Drupal\migrate\Plugin\migrate\process\MigrationLookup
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\migrate\process\StaticMap
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "sub_process",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "sub_process",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class SubProcess extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -60,11 +61,8 @@ use Drupal\migrate\MigrateException;
 | 
			
		|||
 * @endcode
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "substr"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('substr')]
 | 
			
		||||
class Substr extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -24,11 +25,8 @@ use GuzzleHttp\Psr7\Uri;
 | 
			
		|||
 * into 'http://example.com/a%20url%20with%20spaces.html'.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "urlencode"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('urlencode')]
 | 
			
		||||
class UrlEncode extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate_prepare_row_test\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\MigrateSkipRowException;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,11 +10,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Provides a testing process plugin that skips rows.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "test_skip_row_process"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('test_skip_row_process')]
 | 
			
		||||
class TestSkipRowProcess extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate_drupal\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -17,11 +18,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * returned. This keeps the behavior the same as the classic node migration.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "node_complete_node_lookup"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('node_complete_node_lookup')]
 | 
			
		||||
class NodeCompleteNodeLookup extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate_drupal\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -17,11 +18,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * returned. This keeps the behavior the same as the classic node migration.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "node_complete_node_revision_lookup"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('node_complete_node_revision_lookup')]
 | 
			
		||||
class NodeCompleteNodeRevisionLookup extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\migrate_drupal\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -18,11 +19,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * migration.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "node_complete_node_translation_lookup"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('node_complete_node_translation_lookup')]
 | 
			
		||||
class NodeCompleteNodeTranslationLookup extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\node\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Split the 'administer nodes' permission from 'access content overview'.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "node_update_7008"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('node_update_7008')]
 | 
			
		||||
class NodeUpdate7008 extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\path\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -49,11 +50,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 * In the example above, if the node_translation lookup succeeds and the
 | 
			
		||||
 * original path is of the format '/node/<original node nid>', then the new path
 | 
			
		||||
 * will be set to '/node/<translated node nid>'
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "path_set_translated"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('path_set_translated')]
 | 
			
		||||
class PathSetTranslated extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\responsive_image\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,11 +10,8 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Transforms image style mappings.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "image_style_mappings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('image_style_mappings')]
 | 
			
		||||
class ImageStyleMappings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\search\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Generate configuration rankings.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "search_configuration_rankings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('search_configuration_rankings')]
 | 
			
		||||
class SearchConfigurationRankings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\system\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Rename blog and forum permissions to be consistent with other content types.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "system_update_7000"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('system_update_7000')]
 | 
			
		||||
class SystemUpdate7000 extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\system\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Process the D6 Timezone offset into a D8 compatible timezone name.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "timezone"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('timezone')]
 | 
			
		||||
class TimeZone extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\taxonomy\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Converts a Drupal 6 vocabulary ID to a target bundle array.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "target_bundle"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('target_bundle')]
 | 
			
		||||
class TargetBundle extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\user\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateException;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
| 
						 | 
				
			
			@ -9,12 +10,11 @@ use Drupal\migrate\Row;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Plugin to replace !tokens with [tokens].
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "convert_tokens",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "convert_tokens",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class ConvertTokens extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,15 +2,12 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\user\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "profile_field_settings"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('profile_field_settings')]
 | 
			
		||||
class ProfileFieldSettings extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ namespace Drupal\user\Plugin\migrate\process;
 | 
			
		|||
 | 
			
		||||
use Drupal\Core\Language\LanguageManager;
 | 
			
		||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -11,11 +12,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Provides a process plugin for the user langcode.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "user_langcode"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('user_langcode')]
 | 
			
		||||
class UserLangcode extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,17 +2,15 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\user\Plugin\migrate\process;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Keep the predefined roles for rid 1 and 2.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "user_update_8002"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('user_update_8002')]
 | 
			
		||||
class UserUpdate8002 extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,18 +2,18 @@
 | 
			
		|||
 | 
			
		||||
namespace Drupal\user\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Determines the settings property and translation.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "d6_profile_field_option_translation",
 | 
			
		||||
 *   handle_multiples = TRUE
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess(
 | 
			
		||||
  id: "d6_profile_field_option_translation",
 | 
			
		||||
  handle_multiples: TRUE,
 | 
			
		||||
)]
 | 
			
		||||
class ProfileFieldOptionTranslation extends ProcessPluginBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
namespace Drupal\user\Plugin\migrate\process\d6;
 | 
			
		||||
 | 
			
		||||
use Drupal\Core\Datetime\TimeZoneFormHelper;
 | 
			
		||||
use Drupal\migrate\Attribute\MigrateProcess;
 | 
			
		||||
use Drupal\migrate\MigrateExecutableInterface;
 | 
			
		||||
use Drupal\migrate\ProcessPluginBase;
 | 
			
		||||
use Drupal\migrate\Row;
 | 
			
		||||
| 
						 | 
				
			
			@ -12,11 +13,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Converts user time zones from time zone offsets to time zone names.
 | 
			
		||||
 *
 | 
			
		||||
 * @MigrateProcessPlugin(
 | 
			
		||||
 *   id = "user_update_7002"
 | 
			
		||||
 * )
 | 
			
		||||
 */
 | 
			
		||||
#[MigrateProcess('user_update_7002')]
 | 
			
		||||
class UserUpdate7002 extends ProcessPluginBase implements ContainerFactoryPluginInterface {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue