function ScaffoldFileInfo::packageName

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::packageName()
  2. 8.9.x composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::packageName()
  3. 11.x composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::packageName()

Gets the package name.

Return value

string The name of the package this scaffold file info was collected from.

1 call to ScaffoldFileInfo::packageName()
ScaffoldFileInfo::overridden in composer/Plugin/Scaffold/ScaffoldFileInfo.php
Determines if this scaffold file has been overridden by another package.

File

composer/Plugin/Scaffold/ScaffoldFileInfo.php, line 64

Class

ScaffoldFileInfo
Data object that keeps track of one scaffold file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function packageName() {
    return $this->destination
        ->packageName();
}

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