Skip to content

Commit

Permalink
tw27152827 - fixes help
Browse files Browse the repository at this point in the history
  • Loading branch information
banoodle committed Mar 16, 2022
1 parent 7a55391 commit 0be7662
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions brightcove_media_migrate.module
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use Drupal\Core\Routing\RouteMatchInterface;
*/
function brightcove_media_migrate_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.modulename':
case 'help.page.brightcove_media_migrate':
$text = file_get_contents(dirname(__FILE__) . "/README.md");
if (!\Drupal::moduleHandler()->moduleExists('markdown')) {
return '<pre>' . $text . '</pre>';
Expand All @@ -31,7 +31,9 @@ function brightcove_media_migrate_help($route_name, RouteMatchInterface $route_m
$settings = \Drupal::configFactory()->get('markdown.settings')->getRawData();
$config = ['settings' => $settings];
$filter = $filter_manager->createInstance('markdown', $config);
return $filter->process($text, 'en');
$filterResult = $filter->process($text, 'en');
$text = $filterResult->getProcessedText();
return '<div>' . $text->getHtml() . '</div>';
}
}
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/source/BrightcoveVideoEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @MigrateSource(
* id = "brightcove_video_entity",
* source_module = "brightcove"
* source_module = "brightcove_media_migrate"
* )
*/
class BrightcoveVideoEntity extends SqlBase {
Expand Down

0 comments on commit 0be7662

Please sign in to comment.