function ScaffoldOptions::hasLocation
Same name in other branches
- 9 composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasLocation()
- 8.9.x composer/Plugin/Scaffold/ScaffoldOptions.php \Drupal\Composer\Plugin\Scaffold\ScaffoldOptions::hasLocation()
- 10 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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.