You are here

public function ScaffoldOptions::locations in Drupal 10

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

Gets the location mapping table, e.g. 'webroot' => './'.

Return value

array A map of name : location values

2 calls to ScaffoldOptions::locations()
ScaffoldOptions::getLocation in composer/Plugin/Scaffold/ScaffoldOptions.php
Gets a specific named location.
ScaffoldOptions::hasLocation in composer/Plugin/Scaffold/ScaffoldOptions.php
Determines whether a given named location is defined.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function locations() {
  return $this->options['locations'];
}