Skip to content
Snippets Groups Projects

move to migrate_drupal

Open quietone requested to merge issue/drupal-3258581:3258581-to-migrate-drupal into 11.x
2 unresolved threads
Files
17
@@ -2,27 +2,49 @@
namespace Drupal\block_content\Plugin\migrate\source\d6;
use Drupal\block_content\Plugin\migrate\source\d7\BlockCustomTranslation as D7BlockCustomTranslation;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\source\d6\BoxTranslation as MigrateDrupal6BoxTranslation;
/**
* Drupal 6 i18n content block translations source from database.
*
* For available configuration keys, refer to the parent classes.
*
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
* @deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use
* \Drupal\migrate_drupal\Plugin\migrate\source\d6\BoxTranslation instead.
* @see https://www.drupal.org/node/3439256
*
* @MigrateSource(
* id = "d6_box_translation",
* source_module = "i18nblocks"
* )
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
*/
class BoxTranslation extends D7BlockCustomTranslation {
class BoxTranslation extends MigrateDrupal6BoxTranslation {
/**
* Drupal 6 table names.
* @deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use
* \Drupal\migrate_drupal\Plugin\migrate\source\d6\BoxTranslation::CUSTOM_BLOCK_TABLE
* instead.
*
* @see https://www.drupal.org/node/3439256
*/
const CUSTOM_BLOCK_TABLE = 'boxes';
/**
* @deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use
* \Drupal\migrate_drupal\Plugin\migrate\source\d6\BoxTranslation::I18N_STRING_TABLE
* instead.
*
* @see https://www.drupal.org/node/3439256
*/
const I18N_STRING_TABLE = 'i18n_strings';
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) {
@trigger_error('\Drupal\block_content\Plugin\migrate\source\d6\BoxTranslation is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\source\d6\BoxTranslation instead. See https://www.drupal.org/node/3439256', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager);
}
}
Loading