src/Models/Keyvalue.php
public static function getKeyValuesByType($keyType)
    {
        $keyvalues = self::getKeyvaluesByKeyType($keyType);

        // Sort through the enums of the found type and reformat those
        // as a keyvalue => keyname list.
        $list = [];

        /** @var Keyvalue $keyvalue */
        foreach ($keyvalues as $keyvalue) {
            $list[$keyvalue->keyvalue] = $keyvalue->keyname;
        }

        return $list;
    }
public static function getKeyValuesByType($keyType)
    {
        $keyvalues = self::getKeyvaluesByKeyType($keyType);

        // Sort through the enums of the found type and reformat those
        // as a keyvalue => keyname list.
        $list = [];

        /** @var Keyvalue $keyvalue */
        foreach ($keyvalues as $keyvalue) {
            $list[$keyvalue->keyvalue] = $keyvalue->keyname;
        }

        return $list;
    }
return the keyvalue -> keyname pairs for all elements that match a keytype

Result array is formatted like this:

* keyvalue => keyname
* ... etc

@param string $keyType
@return array of string