WordPress at a glance
function is not described

Composer\Installers

Installer::getLocationPattern() protected WC 1.0

Get the second part of the regular expression to check for support of a package type

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

No Hooks.

Return

String. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->getLocationPattern( $frameworkType );
$frameworkType(string) (required)
-

Code of Installer::getLocationPattern() WC 5.3.0

<?php
protected function getLocationPattern($frameworkType)
{
    $pattern = false;
    if (!empty($this->supportedTypes[$frameworkType])) {
        $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
        /** @var BaseInstaller $framework */
        $framework = new $frameworkClass(null, $this->composer, $this->getIO());
        $locations = array_keys($framework->getLocations());
        $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
    }

    return $pattern ? : '(\w+)';
}