protected function FeaturesEditForm::updateConstrained in Features 8.3
Same name and namespace in other branches
- 8.4 modules/features_ui/src/Form/FeaturesEditForm.php \Drupal\features_ui\Form\FeaturesEditForm::updateConstrained()
Returns a list of constrained (excluded or required) configuration.
Parameters
string $constraint: The constraint (excluded or required).
Return value
array The list of constrained config in a simple array of full config names suitable for storing in the info.yml file.
2 calls to FeaturesEditForm::updateConstrained()
- FeaturesEditForm::updateExcluded in modules/
features_ui/ src/ Form/ FeaturesEditForm.php - Updates the list of excluded config.
- FeaturesEditForm::updateRequired in modules/
features_ui/ src/ Form/ FeaturesEditForm.php - Updates the list of required config.
File
- modules/
features_ui/ src/ Form/ FeaturesEditForm.php, line 1083
Class
- FeaturesEditForm
- Defines the features settings form.
Namespace
Drupal\features_ui\FormCode
protected function updateConstrained($constraint) {
$constrained = [];
foreach ($this->{$constraint} as $type => $item) {
foreach ($item as $name => $value) {
$constrained[] = $this->featuresManager
->getFullName($type, $name);
}
}
return $constrained;
}