You are here

public function Sermepa::getOptionsWithContryCode in Commerce sermepa 8.2

Language codes related with keys options.

Based on http://www.loc.gov/standards/iso639-2/php/code_list.php.

Return value

array Return an array with all languages codes.

1 call to Sermepa::getOptionsWithContryCode()
Sermepa::getSermepaCurrentLanguage in src/Plugin/Commerce/PaymentGateway/Sermepa.php
Get sermepa language code according to the current site language.

File

src/Plugin/Commerce/PaymentGateway/Sermepa.php, line 549

Class

Sermepa
Provides the Sermepa/Redsýs payment gateway.

Namespace

Drupal\commerce_sermepa\Plugin\Commerce\PaymentGateway

Code

public function getOptionsWithContryCode() {
  return [
    '000' => 'zxx',
    '001' => 'es',
    '002' => 'en',
    '003' => 'ca',
    '004' => 'fr',
    '005' => 'de',
    '006' => 'nl',
    '007' => 'it',
    '008' => 'sv',
    '009' => 'pt',
    '010' => 'va',
    '011' => 'pl',
    '012' => 'gl',
    '013' => 'eu',
    '208' => 'da',
  ];
}