You are here

abstract protected function FeaturesGenerationMethodBase::preparePackage in Features 8.3

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

Performs any required changes on a package prior to generation.

Parameters

\Drupal\features\Package $package: The package to be prepared.

array $existing_packages: An array of existing packages with machine names as keys and paths as values.

\Drupal\features\FeaturesBundleInterface $bundle: Optional bundle used for export.

1 call to FeaturesGenerationMethodBase::preparePackage()
FeaturesGenerationMethodBase::prepare in src/FeaturesGenerationMethodBase.php
Prepares packages for generation.
2 methods override FeaturesGenerationMethodBase::preparePackage()
FeaturesGenerationArchive::preparePackage in src/Plugin/FeaturesGeneration/FeaturesGenerationArchive.php
Reads and merges in existing files for a given package or profile.
FeaturesGenerationWrite::preparePackage in src/Plugin/FeaturesGeneration/FeaturesGenerationWrite.php
Reads and merges in existing files for a given package or profile.

File

src/FeaturesGenerationMethodBase.php, line 118

Class

FeaturesGenerationMethodBase
Base class for package assignment methods.

Namespace

Drupal\features

Code

protected abstract function preparePackage(Package $package, array $existing_packages, FeaturesBundleInterface $bundle = NULL);