Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScaffoldOptions.php

function ScaffoldOptions::getLocation

Gets a specific named location.

Parameters

string $name: The name of the location to fetch.

Return value

string The value of the provided named location

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function getLocation($name) {
    return $this->hasLocation($name) ? $this->locations()[$name] : FALSE;
}
RSS feed
Powered by Drupal