You are here

public function Language::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Plugin/migrate/source/Language.php \Drupal\language\Plugin\migrate\source\Language::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

core/modules/language/src/Plugin/migrate/source/Language.php, line 23
Contains \Drupal\language\Plugin\migrate\source\Language.

Class

Language
Plugin annotation @MigrateSource( id = "language", source_provider = "locale" )

Namespace

Drupal\language\Plugin\migrate\source

Code

public function fields() {
  return array(
    '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.'),
  );
}