diff --git a/core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php b/core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php index 8570f902..60cc3206 100644 --- a/core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php +++ b/core/modules/comment/src/Plugin/migrate/source/d7/CommentEntityTranslation.php @@ -105,11 +105,16 @@ class CommentEntityTranslation extends FieldableEntity { * {@inheritdoc} */ public function checkRequirements() { + parent::checkRequirements(); + if (!$this->moduleExists('comment')) { // If we make it to here, the comment module isn't installed. throw new RequirementsException('The module comment is not enabled in the source site'); } - parent::checkRequirements(); + if (!$this->moduleExists('node')) { + // Node module is also a requirement. + throw new RequirementsException('The module node is not enabled in the source site'); + } } }