interface BuilderInterface (View source)

Produce the output for a metapackage.

BuilderInterface provides an interface for builder classes which are called by the PackageGenerator in order to produce a derived metapackage from the provided source package.

See the README.txt file in composer/Metapackage for a description of what a metapackage is, and an explanation of the metapackages produced by the generator.

Methods

__construct(DrupalCoreComposer $drupalCoreInfo)

BuilderInterface constructor.

string
getPath()

Return the path to where the metapackage should be written.

array
getPackage()

Generate the Composer.json data for the current tag or branch.

Details

__construct(DrupalCoreComposer $drupalCoreInfo)

BuilderInterface constructor.

Parameters

DrupalCoreComposer $drupalCoreInfo

Information about the composer.json, composer.lock, and repository path.

string getPath()

Return the path to where the metapackage should be written.

Return Value

string

Path to the metapackage.

array getPackage()

Generate the Composer.json data for the current tag or branch.

Return Value

array

Composer json data.