public function EntityTranslationSettings::fields in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php \Drupal\content_translation\Plugin\migrate\source\d7\EntityTranslationSettings::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/ content_translation/ src/ Plugin/ migrate/ source/ d7/ EntityTranslationSettings.php, line 169
Class
- EntityTranslationSettings
- Drupal 7 Entity Translation settings from variables.
Namespace
Drupal\content_translation\Plugin\migrate\source\d7Code
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'),
];
}