You are here

protected function FeaturesEditForm::updatePackageConfig in Features 8.3

Same name and namespace in other branches
  1. 8.4 modules/features_ui/src/Form/FeaturesEditForm.php \Drupal\features_ui\Form\FeaturesEditForm::updatePackageConfig()

Updates the config stored in the package from the current edit form.

Return value

array Config array to be exported.

1 call to FeaturesEditForm::updatePackageConfig()
FeaturesEditForm::submitForm in modules/features_ui/src/Form/FeaturesEditForm.php
Form submission handler.

File

modules/features_ui/src/Form/FeaturesEditForm.php, line 1019

Class

FeaturesEditForm
Defines the features settings form.

Namespace

Drupal\features_ui\Form

Code

protected function updatePackageConfig(FormStateInterface $form_state) {
  $config = [];
  $components = $this
    ->getComponentList($form_state);
  foreach ($components['config_new'] as $config_type => $items) {
    foreach ($items as $name) {
      $config[] = $this->featuresManager
        ->getFullName($config_type, $name);
    }
  }
  return $config;
}