You are here

public function ScaffoldFileInfo::packageName in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::packageName()
  2. 9 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();
}