public function VariableTranslation::checkRequirements in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/src/Plugin/migrate/source/d6/VariableTranslation.php \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation::checkRequirements()
- 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 124
Class
- VariableTranslation
- Drupal 6 i18n_variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\source\d6Code
public function checkRequirements() {
if (!$this
->getDatabase()
->schema()
->tableExists('i18n_variable')) {
throw new RequirementsException("Source database table 'i18n_variable' does not exist");
}
parent::checkRequirements();
}