function SqlBase::__construct

Same name in this branch
  1. 9 core/modules/views/src/Plugin/views/pager/SqlBase.php \Drupal\views\Plugin\views\pager\SqlBase::__construct()
Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/pager/SqlBase.php \Drupal\views\Plugin\views\pager\SqlBase::__construct()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__construct()
  3. 10 core/modules/views/src/Plugin/views/pager/SqlBase.php \Drupal\views\Plugin\views\pager\SqlBase::__construct()
  4. 10 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__construct()
  5. 11.x core/modules/views/src/Plugin/views/pager/SqlBase.php \Drupal\views\Plugin\views\pager\SqlBase::__construct()
  6. 11.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__construct()

Overrides SourcePluginBase::__construct

3 methods override SqlBase::__construct()
DrupalSqlBase::__construct in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
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 110

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.