You are here

public function ComposerDeployHandler::getPackage in Composer Deploy 8

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

File

src/ComposerDeployHandler.php, line 29
Contains \Drupal\composer_deploy\ComposerDeployHanlder.

Class

ComposerDeployHandler

Namespace

Drupal\composer_deploy

Code

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