WordPress at a glance
function is not described

Composer\Installers

Installer::findFrameworkType() protected WC 1.0

Finds a supported framework type if it exists and returns it

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

No Hooks.

Return

String|false. Nothing.

Usage

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

Code of Installer::findFrameworkType() WC 5.3.0

<?php
protected function findFrameworkType($type)
{
    krsort($this->supportedTypes);

    foreach ($this->supportedTypes as $key => $val) {
        if ($key === substr($type, 0, strlen($key))) {
            return substr($type, 0, strlen($key));
        }
    }

    return false;
}