Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / menu_link_content / src / Plugin / migrate / process / LinkUri.php
index 839b6396063b7885b70a4389327a1580c0e3a367..175566eee403e22b1fc1a223d819555e6d1fe3f9 100644 (file)
@@ -5,6 +5,7 @@ namespace Drupal\menu_link_content\Plugin\migrate\process;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 use Drupal\Core\Url;
+use Drupal\migrate\MigrateException;
 use Drupal\migrate\MigrateExecutableInterface;
 use Drupal\migrate\ProcessPluginBase;
 use Drupal\migrate\Row;
@@ -80,6 +81,9 @@ class LinkUri extends ProcessPluginBase implements ContainerFactoryPluginInterfa
           }
         }
       }
+      else {
+        throw new MigrateException(sprintf('The path "%s" failed validation.', $path));
+      }
     }
     return $path;
   }