public function CommentType::checkRequirements in Drupal 10
Same name and namespace in other branches
- 9 core/modules/comment/src/Plugin/migrate/source/CommentType.php \Drupal\comment\Plugin\migrate\source\CommentType::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/ 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',
]);
}
}