public function FeaturesAssigner::getEnabledAssigners in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesAssigner.php \Drupal\features\FeaturesAssigner::getEnabledAssigners()
Gets enabled assignment methods.
Return value
array An array of enabled assignment methods, sorted by weight.
1 call to FeaturesAssigner::getEnabledAssigners()
- FeaturesAssigner::assignConfigPackages in src/
FeaturesAssigner.php - Apply all enabled package assignment methods.
File
- src/
FeaturesAssigner.php, line 135
Class
- FeaturesAssigner
- Class responsible for performing package assignment.
Namespace
Drupal\featuresCode
public function getEnabledAssigners() {
$enabled = $this->currentBundle
->getEnabledAssignments();
$weights = $this->currentBundle
->getAssignmentWeights();
foreach ($enabled as $key => $value) {
$enabled[$key] = $weights[$key];
}
asort($enabled);
return $enabled;
}