Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Language.php

function Language::fields

Overrides MigrateSourceInterface::fields

File

core/modules/language/src/Plugin/migrate/source/Language.php, line 46

Class

Language
Drupal 6/7 language source from database.

Namespace

Drupal\language\Plugin\migrate\source

Code

public function fields() {
    return [
        'language' => $this->t('The language code.'),
        'name' => $this->t('The English name of the language.'),
        'native' => $this->t('The native name of the language.'),
        'direction' => $this->t('The language direction. (0 = LTR, 1 = RTL)'),
        'enabled' => $this->t('Whether the language is enabled.'),
        'plurals' => $this->t('Number of plural indexes in this language.'),
        'formula' => $this->t('PHP formula to get plural indexes.'),
        'domain' => $this->t('Domain to use for this language.'),
        'prefix' => $this->t('Path prefix used for this language.'),
        'weight' => $this->t('The language weight when listed.'),
        'javascript' => $this->t('Location of the JavaScript translation file.'),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal