Skip to content
Snippets Groups Projects

Adding verification to check if the module is not a feature module

@@ -769,6 +769,11 @@ class FeaturesCommands extends DrushCommands implements ContainerInjectionInterf
throw new DomainException(dt('No such feature is installed: @module', $dt_args));
}
$is_feature_module = $this->manager->isFeatureModule($feature->getExtension());
if (!$is_feature_module) {
throw new DomainException(dt('@module is not a feature module.', $dt_args));
}
// Forcefully revert all components of a feature.
if ($force) {
$components = $feature->getConfigOrig();
Loading