function ScaffoldFileInfo::overridden

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::overridden()
  2. 8.9.x composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::overridden()
  3. 10 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;
}

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