diff --git a/modules/features_ui/src/Form/FeaturesExportForm.php b/modules/features_ui/src/Form/FeaturesExportForm.php index 033480f..720e50d 100644 --- a/modules/features_ui/src/Form/FeaturesExportForm.php +++ b/modules/features_ui/src/Form/FeaturesExportForm.php @@ -154,12 +154,20 @@ class FeaturesExportForm extends FormBase { '#attributes' => array('class' => 'features-header'), ); + $bundle_options = $this->assigner->getBundleOptions(); + + // If there are no custom bundles, provide message. + if (count($bundle_options) < 2) { + drupal_set_message($this->t('You have not yet created any bundles. Before generating features, you may wish to create a bundle to group your features within.', [':create' => Url::fromRoute('features.assignment')->toString()] +)); + } + $form['#prefix'] = '