public function ComposerDeployHandler::getPackage in Composer Deploy 8
Same name and namespace in other branches
- 7 includes/ComposerDeployHandler.php \Drupal\composer_deploy\ComposerDeployHandler::getPackage()
File
- src/
ComposerDeployHandler.php, line 29 - Contains \Drupal\composer_deploy\ComposerDeployHanlder.
Class
Namespace
Drupal\composer_deployCode
public function getPackage($projectName) {
foreach ($this->packages as $package) {
foreach ($this->prefixes as $prefix) {
if ($package['name'] == $prefix . '/' . $projectName) {
return $package;
}
}
}
return FALSE;
}