public function FeaturesAssigner::applyAssignmentMethod in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesAssigner.php \Drupal\features\FeaturesAssigner::applyAssignmentMethod()
Applies a given package assignment method.
Parameters
string $method_id: The string identifier of the package assignment method to use to package configuration.
bool $force: (optional) If TRUE, assign config regardless of restrictions such as it being already assigned to a package.
Overrides FeaturesAssignerInterface::applyAssignmentMethod
1 call to FeaturesAssigner::applyAssignmentMethod()
- FeaturesAssigner::assignConfigPackages in src/
FeaturesAssigner.php - Apply all enabled package assignment methods.
File
- src/
FeaturesAssigner.php, line 171
Class
- FeaturesAssigner
- Class responsible for performing package assignment.
Namespace
Drupal\featuresCode
public function applyAssignmentMethod($method_id, $force = FALSE) {
$this
->getAssignmentMethodInstance($method_id)
->assignPackages($force);
}