function MigratePrivateFileTest::register
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::register()
- 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::register()
- 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::register()
Overrides KernelTestBase::register
File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigratePrivateFileTest.php, line 46
Class
- MigratePrivateFileTest
- Tests private files migration.
Namespace
Drupal\Tests\file\Kernel\Migrate\d7Code
public function register(ContainerBuilder $container) {
parent::register($container);
$container->register('stream_wrapper.private', 'Drupal\\Core\\StreamWrapper\\PrivateStream')
->addTag('stream_wrapper', [
'scheme' => 'private',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.