You are here

public function ScaffoldOptions::hasFileMapping in Drupal 10

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

Determines if there are file mappings.

Return value

bool Whether or not the scaffold options contain any file mappings

File

composer/Plugin/Scaffold/ScaffoldOptions.php, line 169

Class

ScaffoldOptions
Per-project options from the 'extras' section of the composer.json file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function hasFileMapping() {
  return !empty($this
    ->fileMapping());
}