Commit c74d33df authored by Mike Ryan's avatar Mike Ryan

Issue #2435231 by mikeryan: Remove unnecessary MigrateExampleSqlBase class

parent 5405038d
......@@ -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}
......
......@@ -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}
......
......@@ -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}
......
......@@ -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}
......
<?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')
);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment