function FileMigrationSetupTrait::getFileMigrationInfo

Same name in other branches
  1. 9 core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php \Drupal\Tests\file\Kernel\Migrate\d7\FileMigrationSetupTrait::getFileMigrationInfo()
  2. 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php \Drupal\Tests\file\Kernel\Migrate\d7\FileMigrationSetupTrait::getFileMigrationInfo()
  3. 10 core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php \Drupal\Tests\file\Kernel\Migrate\d7\FileMigrationSetupTrait::getFileMigrationInfo()

Returns information about the file to be migrated.

Return value

array Array with keys 'path', 'size', 'base_path', and 'plugin_id'.

1 call to FileMigrationSetupTrait::getFileMigrationInfo()
FileMigrationSetupTrait::fileMigrationSetup in core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php
Prepare the file migration for running.
6 methods override FileMigrationSetupTrait::getFileMigrationInfo()
FollowUpMigrationsTest::getFileMigrationInfo in core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php
MigrateFileTest::getFileMigrationInfo in core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php
MigrateNodeCompleteTest::getFileMigrationInfo in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php
MigrateNodeRevisionTest::getFileMigrationInfo in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php
MigrateNodeTest::getFileMigrationInfo in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php

... See full list

File

core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php, line 21

Class

FileMigrationSetupTrait
A trait to setup the file migration.

Namespace

Drupal\Tests\file\Kernel\Migrate\d7

Code

protected abstract function getFileMigrationInfo();

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