You are here

public function FeaturesAssignerInterface::setBundle in Features 8.4

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

Stores a features bundle.

Added to list if machine_name is new.

Parameters

\Drupal\features\FeaturesBundleInterface $bundle: A features bundle.

bool $current: Determine if the current bundle is set to $bundle. If False, the current bundle is only updated if it already has the same machine name as the $bundle.

1 method overrides FeaturesAssignerInterface::setBundle()
FeaturesAssigner::setBundle in src/FeaturesAssigner.php
Stores a features bundle.

File

src/FeaturesAssignerInterface.php, line 109

Class

FeaturesAssignerInterface
Common interface for features assignment services.

Namespace

Drupal\features

Code

public function setBundle(FeaturesBundleInterface $bundle, $current = TRUE);