You are here

public function FillPdfLinkManipulator::parseUrlString in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/Service/FillPdfLinkManipulator.php \Drupal\fillpdf\Service\FillPdfLinkManipulator::parseUrlString()

Parses a root-relative URL.

Parameters

string $url: The root-relative FillPDF URL that would be used to generate the PDF. e.g. '/fillpdf?fid=1&entity_type=node&entity_id=1'.

Return value

array The FillPDF request context as returned by parseLink().

Overrides FillPdfLinkManipulatorInterface::parseUrlString

See also

\Drupal\fillpdf\FillPdfLinkManipulatorInterface::parseLink()

File

src/Service/FillPdfLinkManipulator.php, line 33

Class

FillPdfLinkManipulator

Namespace

Drupal\fillpdf\Service

Code

public function parseUrlString($url) {
  $link = $this
    ->createUrlFromString($url);
  return $this
    ->parseLink($link);
}