Inpsyde\MultilingualPress\Module\UserAdminLanguage\Setting::get_language_option PHP Method

get_language_option() private method

Returns the HTML of the option element according to the given arguments.
private get_language_option ( string $text, string $value, string $selected ) : string
$text string Option text.
$value string Option value.
$selected string Currently selected option value.
return string The HTML of the option element according to the given arguments.
    private function get_language_option($text, $value, $selected)
    {
        return sprintf('<option value="%2$s"%3$s>%1$s</option>', esc_html($text), esc_attr($value), selected($selected, $value, false));
    }