You are here

public function SqlBase::__construct in Drupal 9

Same name in this branch
  1. 9 core/modules/views/src/Plugin/views/pager/SqlBase.php \Drupal\views\Plugin\views\pager\SqlBase::__construct()
  2. 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__construct()
Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides SourcePluginBase::__construct

2 calls to SqlBase::__construct()
DrupalSqlBase::__construct in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TestSqlBase::__construct in core/modules/migrate/tests/src/Kernel/SqlBaseTest.php
Overrides the constructor so we can create one easily.
3 methods override SqlBase::__construct()
DrupalSqlBase::__construct in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TestSqlBase::__construct in core/modules/migrate/tests/src/Unit/SqlBaseTest.php
Override the constructor so we can create one easily.
TestSqlBase::__construct in core/modules/migrate/tests/src/Kernel/SqlBaseTest.php
Overrides the constructor so we can create one easily.

File

core/modules/migrate/src/Plugin/migrate/source/SqlBase.php, line 108

Class

SqlBase
Sources whose data may be fetched via a database connection.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->state = $state;
}