You are here

protected function Sql::init in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::init()
  2. 9 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::init()

Initialize the plugin.

1 call to Sql::init()
Sql::getDatabase in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Gets the database connection.

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 301

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

protected function init() {
  if (!$this->initialized) {
    $this->initialized = TRUE;
    $this
      ->ensureTables();
  }
}