You are here

public static function MediaMigration::embedTokenDestinationFilterPluginIsValid in Media Migration 8

Whether the transform's destination filter_plugin is valid or not.

Parameters

string|null $filter_plugin_id: The filter plugin ID to check.

Return value

bool TRUE if the plugin is valid, FALSE if not.

6 calls to MediaMigration::embedTokenDestinationFilterPluginIsValid()
FilterSettingsEmbedMedia::transform in src/Plugin/migrate/process/FilterSettingsEmbedMedia.php
Performs the associated process.
ImgTagToEmbedFilter::transform in src/Plugin/migrate/process/ImgTagToEmbedFilter.php
Performs the associated process.
MediaWysiwygFilter::transform in src/Plugin/migrate/process/MediaWysiwygFilter.php
Performs the associated process.
media_migration_migrate_d7_filter_format_prepare_row in ./media_migration.module
Implements hook_migrate_MIGRATION_ID_prepare_row() for d7_filter_format.
media_migration_requirements in ./media_migration.install
Implements hook_requirements().

... See full list

File

src/MediaMigration.php, line 189

Class

MediaMigration
Media Migration configuration and helpers.

Namespace

Drupal\media_migration

Code

public static function embedTokenDestinationFilterPluginIsValid($filter_plugin_id = NULL) {
  $valid_filter_plugin_ids = array_keys(self::MEDIA_TOKEN_DESTINATION_FILTER_REQUIREMENTS);
  $filter_plugin_id = $filter_plugin_id ?? self::getEmbedTokenDestinationFilterPlugin();
  return in_array($filter_plugin_id, $valid_filter_plugin_ids, TRUE);
}