function MigrateExternalTranslatedTestSource::getIds

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::getIds()
  2. 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::getIds()
  3. 11.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::getIds()

Overrides MigrateSourceInterface::getIds

File

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

Class

MigrateExternalTranslatedTestSource
A simple migrate source for our tests.

Namespace

Drupal\migrate_external_translated_test\Plugin\migrate\source

Code

public function getIds() {
    $ids['name']['type'] = 'string';
    if (!$this->configuration['default_lang']) {
        $ids['lang']['type'] = 'string';
    }
    return $ids;
}

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