function MigrateExternalTranslatedTestSource::fields

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

Overrides MigrateSourceInterface::fields

File

core/modules/migrate/tests/modules/migrate_external_translated_test/src/Plugin/migrate/source/MigrateExternalTranslatedTestSource.php, line 36

Class

MigrateExternalTranslatedTestSource
A simple migrate source for our tests.

Namespace

Drupal\migrate_external_translated_test\Plugin\migrate\source

Code

public function fields() {
    return [
        'name' => $this->t('Unique name'),
        'title' => $this->t('Title'),
        'lang' => $this->t('Language'),
    ];
}

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