You are here

D6VariableTranslation.php in Drupal 8

File

core/modules/migrate_drupal/src/Plugin/migrate/source/d6/D6VariableTranslation.php
View source
<?php

namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface;

/**
 * Gets Drupal i18n_variable source from database.
 *
 * @deprecated in drupal:8.7.0 and is removed from drupal:9.0.0.
 * Use \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation.
 *
 * @see https://www.drupal.org/node/3006487
 *
 * @MigrateSource(
 *   id = "variable_translation",
 *   source_module = "system",
 * )
 */
class D6VariableTranslation extends VariableTranslation {

  /**
   * {@inheritdoc}
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) {
    @trigger_error('The ' . __NAMESPACE__ . '\\D6VariableTranslation is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Instead, use ' . __NAMESPACE__ . '\\VariableTranslation. See https://www.drupal.org/node/3006487.', E_USER_DEPRECATED);
    parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager);
  }

}

Classes

Namesort descending Description
D6VariableTranslation Deprecated Gets Drupal i18n_variable source from database.