You are here

public function FillPdfAccessHelperInterface::canGeneratePdfFromUrlString in FillPDF 5.0.x

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

Provides a way to pass in a FillPDF Link string to check access.

Should ultimately pass control to self::canGeneratePdfFromContext().

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.

\Drupal\Core\Session\AccountInterface $account: The account.

Return value

\Drupal\Core\Access\AccessResultInterface The access results.

See also

\Drupal\fillpdf\FillPdfAccessHelperInterface::canGeneratePdfFromContext()

1 method overrides FillPdfAccessHelperInterface::canGeneratePdfFromUrlString()
FillPdfAccessHelper::canGeneratePdfFromUrlString in src/FillPdfAccessHelper.php
Provides a way to pass in a FillPDF Link string to check access.

File

src/FillPdfAccessHelperInterface.php, line 31

Class

FillPdfAccessHelperInterface
Interface FillPdfAccessHelperInterface.

Namespace

Drupal\fillpdf

Code

public function canGeneratePdfFromUrlString($url, AccountInterface $account);