You are here

protected function OutputHandler::processDestinationPath in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/OutputHandler.php \Drupal\fillpdf\OutputHandler::processDestinationPath()

Processes the destination path.

Parameters

string $destination_path: The raw destination path, possibly containing unresolved tokens.

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities to be used for replacing tokens.

string $scheme: (optional) The storage scheme. Defaults to 'public'.

Return value

string The normalized URI

1 call to OutputHandler::processDestinationPath()
OutputHandler::savePdfToFile in src/OutputHandler.php
Saves merged PDF data to the filesystem.

File

src/OutputHandler.php, line 123

Class

OutputHandler
Class OutputHandler.

Namespace

Drupal\fillpdf

Code

protected function processDestinationPath($destination_path, array $entities, $scheme = 'public') {
  $destination_path = (string) $this->tokenResolver
    ->replace($destination_path, $entities, [
    'content' => 'text',
  ]);
  return FillPdf::buildFileUri($scheme, $destination_path);
}