You are here

public function ComposerDeployHandler::getPackage in Composer Deploy 7

Same name and namespace in other branches
  1. 8 src/ComposerDeployHandler.php \Drupal\composer_deploy\ComposerDeployHandler::getPackage()

File

includes/ComposerDeployHandler.php, line 22
Contains \Drupal\composer_deploy\ComposerDeployHandler.

Class

ComposerDeployHandler

Namespace

Drupal\composer_deploy

Code

public function getPackage($projectName) {
  foreach ($this->packages as $package) {
    if ($package['name'] == 'drupal/' . $projectName) {
      return $package;
    }
  }
  return FALSE;
}