function VariableTranslation::checkRequirements

Same name 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()
  2. 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::checkRequirements()
  3. 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::checkRequirements()

Overrides DrupalSqlBase::checkRequirements

File

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

Class

VariableTranslation
Drupal 6 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();
}

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