You are here

public function FeaturesAssigner::removeBundle in Features 8.3

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

File

src/FeaturesAssigner.php, line 448

Class

FeaturesAssigner
Class responsible for performing package assignment.

Namespace

Drupal\features

Code

public function removeBundle($machine_name) {
  $bundle = $this
    ->getBundle($machine_name);
  if (isset($bundle) && !$bundle
    ->isDefault()) {
    unset($this->bundles[$machine_name]);
    $bundle
      ->remove();
  }
}