function ProfileField::checkRequirements
Same name in other branches
- 9 core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::checkRequirements()
- 8.9.x core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::checkRequirements()
- 11.x core/modules/user/src/Plugin/migrate/source/ProfileField.php \Drupal\user\Plugin\migrate\source\ProfileField::checkRequirements()
Overrides DrupalSqlBase::checkRequirements
File
-
core/
modules/ user/ src/ Plugin/ migrate/ source/ ProfileField.php, line 108
Class
- ProfileField
- Drupal 6/7 profile field source from database.
Namespace
Drupal\user\Plugin\migrate\sourceCode
public function checkRequirements() {
$this->setTableNames();
if (!$this->getDatabase()
->schema()
->tableExists($this->fieldTable)) {
// If we make it to here, the profile module isn't installed.
throw new RequirementsException('Profile module not enabled on source site');
}
parent::checkRequirements();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.