You are here

public function FeaturesGenerationMethodInterface::generate in Features 8.4

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

Performs package 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 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.
2 methods override FeaturesGenerationMethodInterface::generate()
FeaturesGenerationArchive::generate in src/Plugin/FeaturesGeneration/FeaturesGenerationArchive.php
Performs package generation.
FeaturesGenerationWrite::generate in src/Plugin/FeaturesGeneration/FeaturesGenerationWrite.php
Performs package generation.

File

src/FeaturesGenerationMethodInterface.php, line 59

Class

FeaturesGenerationMethodInterface
Interface for package assignment classes.

Namespace

Drupal\features

Code

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