You are here

public function FeaturesGenerationMethodInterface::prepare in Features 8.3

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

Prepares packages for generation.

Parameters

array $packages: Array of package data.

\Drupal\features\FeaturesBundleInterface $bundle: The optional bundle used for the generation. Used to generate profiles.

Return value

array An array of packages data.

1 method overrides FeaturesGenerationMethodInterface::prepare()
FeaturesGenerationMethodBase::prepare in src/FeaturesGenerationMethodBase.php
Prepares packages for generation.

File

src/FeaturesGenerationMethodInterface.php, line 40

Class

FeaturesGenerationMethodInterface
Interface for package assignment classes.

Namespace

Drupal\features

Code

public function prepare(array &$packages = [], FeaturesBundleInterface $bundle = NULL);