DrupalPackageBuilder.php

Same filename in other branches
  1. 8.9.x composer/Generator/Builder/DrupalPackageBuilder.php
  2. 10 composer/Generator/Builder/DrupalPackageBuilder.php
  3. 11.x composer/Generator/Builder/DrupalPackageBuilder.php

Namespace

Drupal\Composer\Generator\Builder

File

composer/Generator/Builder/DrupalPackageBuilder.php

View source
<?php

namespace Drupal\Composer\Generator\Builder;

use Drupal\Composer\Generator\BuilderInterface;
use Drupal\Composer\Generator\Util\DrupalCoreComposer;

/**
 * Base class that includes helpful utility routine for Drupal builder classes.
 */
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;
    }

}

Classes

Title Deprecated Summary
DrupalPackageBuilder Base class that includes helpful utility routine for Drupal builder classes.

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