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