function EventWithPackageListTrait::getRuntimePackages
Same name and namespace in other branches
- 11.x core/modules/package_manager/src/Event/EventWithPackageListTrait.php \Drupal\package_manager\Event\EventWithPackageListTrait::getRuntimePackages()
Gets the runtime (i.e., non-dev) packages.
Return value
string[] An array of packages where the keys are package names in the form `vendor/name` and the values are version constraints. Packages without a version constraint will default to `*`.
File
-
core/
modules/ package_manager/ src/ Event/ EventWithPackageListTrait.php, line 58
Class
- EventWithPackageListTrait
- Common methods for pre- and post-require events.
Namespace
Drupal\package_manager\EventCode
public function getRuntimePackages() : array {
return $this->getKeyedPackages($this->runtimePackages);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.