You are here

public function SqlBase::checkRequirements in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::checkRequirements()

Checks if requirements for this plugin are OK.

Throws

\Drupal\migrate\Exception\RequirementsException Thrown when requirements are not met.

Overrides RequirementsInterface::checkRequirements

1 call to SqlBase::checkRequirements()
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.
1 method overrides SqlBase::checkRequirements()
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.

File

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

Class

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

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function checkRequirements() {
  if ($this->pluginDefinition['requirements_met'] === TRUE) {
    $this
      ->getDatabase();
  }
}