diff --git a/core/modules/menu_link_content/src/Plugin/migrate/process/d6/InternalUri.php b/core/modules/menu_link_content/src/Plugin/migrate/process/d6/InternalUri.php index 23b6988..c035fb6 100644 --- a/core/modules/menu_link_content/src/Plugin/migrate/process/d6/InternalUri.php +++ b/core/modules/menu_link_content/src/Plugin/migrate/process/d6/InternalUri.php @@ -7,6 +7,7 @@ namespace Drupal\menu_link_content\Plugin\migrate\process\d6; +use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Path\PathValidatorInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Routing\RouteBuilderInterface; @@ -82,6 +83,9 @@ public function transform($value, MigrateExecutableInterface $migrate_executable if ($this->pathValidator->getUrlIfValidWithoutAccessCheck($path)) { return 'internal:/' . $path; } + else { + $migrate_executable->saveMessage(SafeMarkup::format('The path "@path" failed validation and was dropped.', ['@path' => $path])); + } } else { return $path;