You are here

public function ScaffoldFileInfo::overridden in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::overridden()
  2. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::overridden()

Determines if this scaffold file has been overridden by another package.

Parameters

string $providing_package: The name of the package that provides the scaffold file at this location, as returned by self::findProvidingPackage()

Return value

bool Whether this scaffold file if overridden or removed.

File

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

Class

ScaffoldFileInfo
Data object that keeps track of one scaffold file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function overridden($providing_package) {
  return $this
    ->packageName() !== $providing_package;
}