public function FeaturesBundle::getEnabledAssignments in Features 8.3
Same name and namespace in other branches
- 8.4 src/Entity/FeaturesBundle.php \Drupal\features\Entity\FeaturesBundle::getEnabledAssignments()
Gets the list of enabled assignment methods.
Return value
array An array of method IDs keyed by assignment method IDs.
Overrides FeaturesBundleInterface::getEnabledAssignments
See also
\Drupal\features\FeaturesBundleInterface::setEnabledAssignments()
File
- src/
Entity/ FeaturesBundle.php, line 211
Class
- FeaturesBundle
- Defines a features bundle.
Namespace
Drupal\features\EntityCode
public function getEnabledAssignments() {
$list = [];
foreach ($this->assignments as $method_id => $method) {
if ($method['enabled']) {
$list[$method_id] = $method_id;
}
}
return $list;
}