MigrateExternalTranslatedTestSource::$import

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::import
  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::import
  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::import

The data to import.

Type: array

File

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

Class

MigrateExternalTranslatedTestSource
A simple migrate source for our tests.

Namespace

Drupal\migrate_external_translated_test\Plugin\migrate\source

Code

protected $import = [
    [
        'name' => 'cat',
        'title' => 'Cat',
        'lang' => 'English',
    ],
    [
        'name' => 'cat',
        'title' => 'Chat',
        'lang' => 'French',
    ],
    [
        'name' => 'cat',
        'title' => 'es - Cat',
        'lang' => 'Spanish',
    ],
    [
        'name' => 'dog',
        'title' => 'Dog',
        'lang' => 'English',
    ],
    [
        'name' => 'dog',
        'title' => 'fr - Dog',
        'lang' => 'French',
    ],
    [
        'name' => 'monkey',
        'title' => 'Monkey',
        'lang' => 'English',
    ],
];

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