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

Breadcrumb

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

function PreFileDownloadEvent::getContext

Returns the context of this download, if any.

If this download is of type package, the package object is returned. If the type is metadata, an array{repository: RepositoryInterface} is returned.

Return value

mixed

File

vendor/composer/composer/src/Composer/Plugin/PreFileDownloadEvent.php, line 130

Class

PreFileDownloadEvent
The pre file download event.

Namespace

Composer\Plugin

Code

public function getContext() {
    return $this->context;
}
RSS feed
Powered by Drupal