src/Models/Keytype.php
public static function getKeytypes()
    {
        $tableCache = static::tableToArray();

        // Reformat the table cache to name => description.
        $result = [];
        foreach ($tableCache as $key => $value) {
            $result[$value->name] = $value->description;
        }

        return $result;
    }
public static function getKeytypes()
    {
        $tableCache = static::tableToArray();

        // Reformat the table cache to name => description.
        $result = [];
        foreach ($tableCache as $key => $value) {
            $result[$value->name] = $value->description;
        }

        return $result;
    }
return an array of name/description pairs from the cache

@return array