You are here

public function FillPdfLinkManipulator::parseRequest in FillPDF 8.4

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

@todo: Maybe this should return a FillPdfLinkContext object or something? Guess it depends on how much I end up needing to change it.

Overrides FillPdfLinkManipulatorInterface::parseRequest

File

src/Service/FillPdfLinkManipulator.php, line 22

Class

FillPdfLinkManipulator

Namespace

Drupal\fillpdf\Service

Code

public function parseRequest(Request $request) {

  // @todo: Use Url::fromRequest when/if it lands in core. See https://www.drupal.org/node/2605530
  $path = $request
    ->getUri();
  $request_url = $this
    ->createUrlFromString($path);
  return $this
    ->parseLink($request_url);
}