protected function MediaMigrationTestBase::setEmbedTokenDestinationFilterPlugin in Media Migration 8
Changes the entity embed token transform destination filter plugin.
Parameters
string $new_filter_plugin_id: The new token transform destination plugin ID.
3 calls to MediaMigrationTestBase::setEmbedTokenDestinationFilterPlugin()
- MediaMigrationFilterFormatTest::testFilterFormatMigration in tests/
src/ Kernel/ Migrate/ MediaMigrationFilterFormatTest.php - Tests the alterations made on the filter format migration.
- MediaMigrationNoImageAltFieldTest::testMediaConfigMigrationWithNoAltField in tests/
src/ Kernel/ Migrate/ MediaMigrationNoImageAltFieldTest.php - Tests media migration from a site without field_file_image_alt_text field.
- MediaMigrationTest::testMediaMigration in tests/
src/ Kernel/ Migrate/ MediaMigrationTest.php - Tests the migration of media entities.
File
- tests/
src/ Kernel/ Migrate/ MediaMigrationTestBase.php, line 64
Class
- MediaMigrationTestBase
- Base class for Media Migration kernel tests.
Namespace
Drupal\Tests\media_migration\Kernel\MigrateCode
protected function setEmbedTokenDestinationFilterPlugin($new_filter_plugin_id) {
$current_filter_plugin_id = MediaMigration::getEmbedTokenDestinationFilterPlugin();
if ($new_filter_plugin_id !== $current_filter_plugin_id) {
$this
->setSetting(MediaMigration::MEDIA_TOKEN_DESTINATION_FILTER_SETTINGS, $new_filter_plugin_id);
}
}