class DrupalPackageBuilder

Same name in other branches
  1. 9 composer/Generator/Builder/DrupalPackageBuilder.php \Drupal\Composer\Generator\Builder\DrupalPackageBuilder
  2. 8.9.x composer/Generator/Builder/DrupalPackageBuilder.php \Drupal\Composer\Generator\Builder\DrupalPackageBuilder
  3. 11.x composer/Generator/Builder/DrupalPackageBuilder.php \Drupal\Composer\Generator\Builder\DrupalPackageBuilder

Base class that includes helpful utility routine for Drupal builder classes.

Hierarchy

Expanded class hierarchy of DrupalPackageBuilder

File

composer/Generator/Builder/DrupalPackageBuilder.php, line 11

Namespace

Drupal\Composer\Generator\Builder
View source
abstract class DrupalPackageBuilder implements BuilderInterface {
    
    /**
     * Information about composer.json, composer.lock etc. in current release.
     *
     * @var \Drupal\Composer\Generator\Util\DrupalCoreComposer
     */
    protected $drupalCoreInfo;
    
    /**
     * DrupalPackageBuilder constructor.
     *
     * @param \Drupal\Composer\Generator\Util\DrupalCoreComposer $drupalCoreInfo
     *   Information about composer.json and composer.lock from current release.
     */
    public function __construct(DrupalCoreComposer $drupalCoreInfo) {
        $this->drupalCoreInfo = $drupalCoreInfo;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
BuilderInterface::getPackage public function Generate the Composer.json data for the current tag or branch. 3
BuilderInterface::getPath public function Return the path to where the metapackage should be written. 3
DrupalPackageBuilder::$drupalCoreInfo protected property Information about composer.json, composer.lock etc. in current release.
DrupalPackageBuilder::__construct public function DrupalPackageBuilder constructor. Overrides BuilderInterface::__construct

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.