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

Breadcrumb

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

function Installer::supports

Parameters

string $packageType:

Overrides LibraryInstaller::supports

File

vendor/composer/installers/src/Composer/Installers/Installer.php, line 190

Class

Installer

Namespace

Composer\Installers

Code

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;
}

API Navigation

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