WordPress at a glance
function is not described

Composer\Installers

Installer::supports() public WC 1.0

{@inheritDoc}

{} It's a method of the class: Installer{}

No Hooks.

Return

null. Nothing.

Usage

$Installer = new Installer();
$Installer->supports( $packageType );
$packageType (required)
-

Code of Installer::supports() WC 5.3.0

<?php
public function supports($packageType)
{
    $frameworkType = $this->findFrameworkType($packageType);

    if ($frameworkType === false) {
        return false;
    }

    $locationPattern = $this->getLocationPattern($frameworkType);

    return preg_match('#' . $frameworkType . '-' . $locationPattern . '#', $packageType, $matches) === 1;
}