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

Breadcrumb

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

function ArchiverInterface::supports

Format supported by the archiver.

Parameters

string $format The archive format:

?string $sourceType The source type (git, svn, hg, etc.):

Return value

bool true if the format is supported by the archiver

2 methods override ArchiverInterface::supports()
PharArchiver::supports in vendor/composer/composer/src/Composer/Package/Archiver/PharArchiver.php
@inheritDoc
ZipArchiver::supports in vendor/composer/composer/src/Composer/Package/Archiver/ZipArchiver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Package/Archiver/ArchiverInterface.php, line 43

Class

ArchiverInterface
@author Till Klampaeckel <till@php.net> @author Matthieu Moquet <matthieu@moquet.net> @author Nils Adermann <naderman@naderman.de>

Namespace

Composer\Package\Archiver

Code

public function supports(string $format, ?string $sourceType) : bool;

API Navigation

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