You are here

abstract class DrupalPackageBuilder in Drupal 9

Same name and namespace in other branches
  1. 8 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

Namesort descending Modifiers Type Description 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