Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequireEventTrait.php

function RequireEventTrait::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/RequireEventTrait.php, line 58

Class

RequireEventTrait
Common methods for pre- and post-require events.

Namespace

Drupal\package_manager\Event

Code

public function getRuntimePackages() : array {
    return $this->getKeyedPackages($this->runtimePackages);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal