public function FeaturesGeneratorInterface::applyGenerationMethod in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesGeneratorInterface.php \Drupal\features\FeaturesGeneratorInterface::applyGenerationMethod()
Apply a given package generation method.
Parameters
string $method_id: The string identifier of the package generation method to use to package configuration.
array $packages: Array of package data.
\Drupal\features\FeaturesBundleInterface $bundle: The optional bundle used for the generation. Used to generate profiles.
Return value
array Array of results for profile and/or packages, each result including the following keys:
- 'success': boolean TRUE or FALSE for successful writing.
- 'display': boolean TRUE if the message should be displayed to the user, otherwise FALSE.
- 'message': a message about the result of the operation.
- 'variables': an array of substitutions to be used in the message.
1 method overrides FeaturesGeneratorInterface::applyGenerationMethod()
- FeaturesGenerator::applyGenerationMethod in src/
FeaturesGenerator.php - Apply a given package generation method.
File
- src/
FeaturesGeneratorInterface.php, line 74
Class
- FeaturesGeneratorInterface
- Common interface for features generation services.
Namespace
Drupal\featuresCode
public function applyGenerationMethod($method_id, array $packages = [], FeaturesBundleInterface $bundle = NULL);