function EntityTranslationSettings::fields

Same name in other branches
  1. 9 core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::fields()
  2. 8.9.x core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::fields()
  3. 10 core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::fields()

Overrides MigrateSourceInterface::fields

File

core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php, line 174

Class

EntityTranslationSettings
Drupal 7 Entity Translation settings (variables) from database.

Namespace

Drupal\content_translation\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'id' => $this->t('The configuration ID'),
        'target_entity_type_id' => $this->t('The target entity type ID'),
        'target_bundle' => $this->t('The target bundle'),
        'default_langcode' => $this->t('The default language'),
        'language_alterable' => $this->t('Whether to show language selector on create and edit pages'),
        'untranslatable_fields_hide' => $this->t('Whether to hide non translatable fields on translation forms'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.