Inpsyde\MultilingualPress\Common\Type\AliasAwareLanguage::get_names PHP Method

get_names() private method

Returns the complete set of language names and codes for the given language data.
private get_names ( array $data ) : string[]
$data array Language data.
return string[] Language names and codes.
    private function get_names(array $data)
    {
        $names = ['english_name' => '', 'native_name' => '', 'custom_name' => isset($data['text']) ? $data['text'] : '', 'text' => '', 'http_name' => '', 'wp_locale' => ''];
        $names = array_replace($names, array_intersect_key($data, $names));
        return array_map('strval', $names);
    }