diff --git a/src/Service/FillPdfLinkManipulator.php b/src/Service/FillPdfLinkManipulator.php index e39f3bc6b8cddeb65110b19f2e57654c6785d0b9..da63f3e85d2b1dd9d61df93b67861182bd0bc674 100644 --- a/src/Service/FillPdfLinkManipulator.php +++ b/src/Service/FillPdfLinkManipulator.php @@ -61,10 +61,6 @@ class FillPdfLinkManipulator implements FillPdfLinkManipulatorInterface { public function parseLink(Url $link) { $query = $link->getOption('query'); - if (!$query) { - throw new \InvalidArgumentException("This link doesn't specify a query string, so failing."); - } - if (empty($query['fid'])) { throw new \InvalidArgumentException('No FillPDF Form was specified in the query string, so failing.'); } diff --git a/tests/src/Functional/LinkManipulatorTest.php b/tests/src/Functional/LinkManipulatorTest.php index 8ed402745b5286e56d65be9ef2468d95baf2513f..62b8483ae162ad3d99087d7b7737b8cfd887bda4 100644 --- a/tests/src/Functional/LinkManipulatorTest.php +++ b/tests/src/Functional/LinkManipulatorTest.php @@ -52,9 +52,6 @@ class LinkManipulatorTest extends BrowserTestBase { // Hit the generation route with no query string set. $fillpdf_route = Url::fromRoute('fillpdf.populate_pdf', [], []); $this->drupalGet($fillpdf_route); - // Ensure the exception is converted to an error and access is denied. - $this->assertSession()->statusCodeEquals(403); - $this->assertSession()->pageTextContains("This link doesn't specify a query string, so failing."); // Hit the generation route with no fid set. $fillpdf_route = Url::fromRoute('fillpdf.populate_pdf', [], [