Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / migrate / source / d6 / D6VariableTranslation.php
1 <?php
2
3 namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
4
5 use Drupal\Core\Entity\EntityManagerInterface;
6 use Drupal\Core\State\StateInterface;
7 use Drupal\migrate\Plugin\MigrationInterface;
8
9 /**
10  * Gets Drupal i18n_variable source from database.
11  *
12  * @deprecated in Drupal 8.7.x and will be removed in Drupal 9.0.x.
13  * Use \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation.
14  *
15  * @see https://www.drupal.org/node/3006487
16  *
17  * @MigrateSource(
18  *   id = "variable_translation",
19  *   source_module = "system",
20  * )
21  */
22 class D6VariableTranslation extends VariableTranslation {
23
24   /**
25    * {@inheritdoc}
26    */
27   public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager) {
28     @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);
29     parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager);
30   }
31
32 }