Function Block_top_language->get_lang_country

Definitions

sources/blocks/top_language.php

  • Execute the block.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$lang_iso ID_TEXT No No required parameter N/A N/A ISO language code

Returns

  • ISO country code
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Execute the block.
 *
 * @param  ID_TEXT $lang_iso ISO language code
 * @return ID_TEXT ISO country code
 */

protected function get_lang_country(string $lang_iso) : string