diff --git a/migrate_example/src/Plugin/migrate/source/BeerComment.php b/migrate_example/src/Plugin/migrate/source/BeerComment.php index 3c2c15a1f25a228ce90866bbe73121b31c073ce8..4de9515c2fe34dfe967b55c06b038a71dfbf5e50 100644 --- a/migrate_example/src/Plugin/migrate/source/BeerComment.php +++ b/migrate_example/src/Plugin/migrate/source/BeerComment.php @@ -7,6 +7,8 @@ namespace Drupal\migrate_example\Plugin\migrate\source; +use Drupal\migrate\Plugin\migrate\source\SqlBase; + /** * Drupal 6 comment source from database. * @@ -14,7 +16,7 @@ namespace Drupal\migrate_example\Plugin\migrate\source; * id = "beer_comment" * ) */ -class BeerComment extends MigrateExampleSqlBase { +class BeerComment extends SqlBase { /** * {@inheritdoc} diff --git a/migrate_example/src/Plugin/migrate/source/BeerNode.php b/migrate_example/src/Plugin/migrate/source/BeerNode.php index 5ca7b7919c88e5bd35f312fb544de4762a9ddb6d..15e24f84d785ca9ee48820a25f78ae72ef6c495b 100644 --- a/migrate_example/src/Plugin/migrate/source/BeerNode.php +++ b/migrate_example/src/Plugin/migrate/source/BeerNode.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_example\Plugin\migrate\source; +use Drupal\migrate\Plugin\migrate\source\SqlBase; use Drupal\migrate\Row; /** @@ -16,7 +17,7 @@ use Drupal\migrate\Row; * id = "beer_node" * ) */ -class BeerNode extends MigrateExampleSqlBase { +class BeerNode extends SqlBase { /** * {@inheritdoc} diff --git a/migrate_example/src/Plugin/migrate/source/BeerTerm.php b/migrate_example/src/Plugin/migrate/source/BeerTerm.php index e68763c5f3e5c3ce01c13c8f8df3a428abc93a35..410a3dbbf530990a1b19e00209ecf5e77a23adac 100644 --- a/migrate_example/src/Plugin/migrate/source/BeerTerm.php +++ b/migrate_example/src/Plugin/migrate/source/BeerTerm.php @@ -7,6 +7,8 @@ namespace Drupal\migrate_example\Plugin\migrate\source; +use Drupal\migrate\Plugin\migrate\source\SqlBase; + /** * Drupal 6 user source from database. * @@ -14,7 +16,7 @@ namespace Drupal\migrate_example\Plugin\migrate\source; * id = "beer_term" * ) */ -class BeerTerm extends MigrateExampleSqlBase { +class BeerTerm extends SqlBase { /** * {@inheritdoc} diff --git a/migrate_example/src/Plugin/migrate/source/BeerUser.php b/migrate_example/src/Plugin/migrate/source/BeerUser.php index 572e0d7f1a52e6f4a632ecbf5bc9415fa5a02c58..6fdbceb073889b4e65a1439e76f8aac39a59a87d 100644 --- a/migrate_example/src/Plugin/migrate/source/BeerUser.php +++ b/migrate_example/src/Plugin/migrate/source/BeerUser.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_example\Plugin\migrate\source; +use Drupal\migrate\Plugin\migrate\source\SqlBase; use Drupal\migrate\Row; /** @@ -16,7 +17,7 @@ use Drupal\migrate\Row; * id = "beer_user" * ) */ -class BeerUser extends MigrateExampleSqlBase { +class BeerUser extends SqlBase { /** * {@inheritdoc} diff --git a/migrate_example/src/Plugin/migrate/source/MigrateExampleSqlBase.php b/migrate_example/src/Plugin/migrate/source/MigrateExampleSqlBase.php deleted file mode 100644 index d7075c9139b92649de75c6c9785ee26c43fdbd9c..0000000000000000000000000000000000000000 --- a/migrate_example/src/Plugin/migrate/source/MigrateExampleSqlBase.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** - * @file - * Contains \Drupal\migrate_example\Plugin\migrate\source\MigrateExampleSqlBase. - */ - -namespace Drupal\migrate_example\Plugin\migrate\source; - -use Drupal\Core\Plugin\ContainerFactoryPluginInterface; -use Drupal\migrate\Entity\MigrationInterface; -use Drupal\migrate\Plugin\migrate\source\SqlBase; -use Symfony\Component\DependencyInjection\ContainerInterface; - -/** - * A base source class for beer tables. - */ -abstract class MigrateExampleSqlBase extends SqlBase implements ContainerFactoryPluginInterface { - - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { - return new static( - $configuration, - $plugin_id, - $plugin_definition, - $migration, - $container->get('state') - ); - } - -}