protected function ScaffoldOptions::hasLocation in Drupal 9
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\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\ScaffoldCode
protected function hasLocation($name) {
return array_key_exists($name, $this
->locations());
}