You are here

public function ScaffoldOptions::locations in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::locations()
  2. 10 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

1 call to ScaffoldOptions::locations()
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'];
}