You are here

public function VariableTranslation::checkRequirements in Drupal 8

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

Checks if requirements for this plugin are OK.

Throws

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

Overrides DrupalSqlBase::checkRequirements

File

core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php, line 105

Class

VariableTranslation
Drupal i18n_variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source\d6

Code

public function checkRequirements() {
  if (!$this
    ->getDatabase()
    ->schema()
    ->tableExists('i18n_variable')) {
    throw new RequirementsException("Source database table 'i18n_variable' does not exist");
  }
  parent::checkRequirements();
}