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

Breadcrumb

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

function PostFileDownloadEvent::getContext

Returns the context of this download, if any.

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

Return value

mixed

1 call to PostFileDownloadEvent::getContext()
PostFileDownloadEvent::getPackage in vendor/composer/composer/src/Composer/Plugin/PostFileDownloadEvent.php
Get the package.

File

vendor/composer/composer/src/Composer/Plugin/PostFileDownloadEvent.php, line 111

Class

PostFileDownloadEvent
The post file download event.

Namespace

Composer\Plugin

Code

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