function CommentType::checkRequirements
Same name in other branches
- 10 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::checkRequirements()
- 11.x core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::checkRequirements()
Overrides DrupalSqlBase::checkRequirements
File
-
core/
modules/ comment/ src/ Plugin/ migrate/ source/ CommentType.php, line 83
Class
- CommentType
- Drupal 6/7 comment types source from database.
Namespace
Drupal\comment\Plugin\migrate\sourceCode
public function checkRequirements() {
parent::checkRequirements();
if (!$this->moduleExists('node')) {
// Drupal 6 and Drupal 7 comment configuration migrations migrate comment
// types and comment fields for node comments only.
throw new RequirementsException('The node module is not enabled in the source site.', [
'source_module_additional' => 'node',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.