You are here

public function FeaturesGenerator::generatePackages in Features 8.4

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

Generates file representations of configuration packages.

Parameters

string $method_id: The ID of the generation method to use.

\Drupal\features\FeaturesBundleInterface $bundle: The bundle used for the generation.

array $package_names: Array of names of packages to be generated. If none are specified, all available packages will be added.

Overrides FeaturesGeneratorInterface::generatePackages

File

src/FeaturesGenerator.php, line 145

Class

FeaturesGenerator
Class responsible for performing package generation.

Namespace

Drupal\features

Code

public function generatePackages($method_id, FeaturesBundleInterface $bundle, array $package_names = []) {
  $this->featuresManager
    ->setPackageBundleNames($bundle, $package_names);
  return $this
    ->generate($method_id, $bundle, $package_names);
}