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

Breadcrumb

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

function ScaffoldOptions::hasLocation

Determines whether a given named location is defined.

Parameters

string $name: The location name to search for.

Return value

bool True if the specified named location exist.

1 call to ScaffoldOptions::hasLocation()
ScaffoldOptions::getLocation in composer/Plugin/Scaffold/ScaffoldOptions.php
Gets a specific named location.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function hasLocation($name) {
    return array_key_exists($name, $this->locations());
}
RSS feed
Powered by Drupal