You are here

public function FeaturesAssigner::assignConfigPackages in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/FeaturesAssigner.php \Drupal\features\FeaturesAssigner::assignConfigPackages()

Apply all enabled package assignment methods.

Parameters

bool $force: (optional) If TRUE, assign config regardless of restrictions such as it being already assigned to a package.

Overrides FeaturesAssignerInterface::assignConfigPackages

1 call to FeaturesAssigner::assignConfigPackages()
FeaturesAssigner::applyBundle in src/FeaturesAssigner.php
Makes the named bundle the current bundle.

File

src/FeaturesAssigner.php, line 161

Class

FeaturesAssigner
Class responsible for performing package assignment.

Namespace

Drupal\features

Code

public function assignConfigPackages($force = FALSE) {
  foreach ($this
    ->getEnabledAssigners() as $method_id => $info) {
    $this
      ->applyAssignmentMethod($method_id, $force);
  }
  $this
    ->cleanup();
}