public function FillPdfAccessHelperInterface::canGeneratePdfFromLink in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 src/FillPdfAccessHelperInterface.php \Drupal\fillpdf\FillPdfAccessHelperInterface::canGeneratePdfFromLink()
Provides a way to check access from a link argument.
This function should build a FillPdfLinkManipulator-compatible $context and then pass control to self::canGeneratePdfFromLink().
Parameters
\Drupal\Core\Url $link: The FillPDF Link containing the entities whose access to check.
\Drupal\Core\Session\AccountInterface $account: The user whose access is being checked.
Return value
\Drupal\Core\Access\AccessResultInterface The access results.
See also
\Drupal\fillpdf\FillPdfAccessHelperInterface::canGeneratePdfFromContext()
1 method overrides FillPdfAccessHelperInterface::canGeneratePdfFromLink()
- FillPdfAccessHelper::canGeneratePdfFromLink in src/
FillPdfAccessHelper.php - Provides a way to check access from a link argument.
File
- src/
FillPdfAccessHelperInterface.php, line 49
Class
- FillPdfAccessHelperInterface
- Interface FillPdfAccessHelperInterface.
Namespace
Drupal\fillpdfCode
public function canGeneratePdfFromLink(Url $link, AccountInterface $account);