public function AgreementHandlerInterface::getAgreementByUserAndPath in Agreement 8.2
Same name and namespace in other branches
- 3.0.x src/AgreementHandlerInterface.php \Drupal\agreement\AgreementHandlerInterface::getAgreementByUserAndPath()
Find the agreement by user account and path.
Parameters
\Drupal\Core\Session\AccountProxyInterface $account: The user account to check.
string $path: The path to check.
Return value
\Drupal\agreement\Entity\Agreement|false The agreement entity to use or FALSE if none found.
1 method overrides AgreementHandlerInterface::getAgreementByUserAndPath()
- AgreementHandler::getAgreementByUserAndPath in src/
AgreementHandler.php - Find the agreement by user account and path.
File
- src/
AgreementHandlerInterface.php, line 78
Class
- AgreementHandlerInterface
- Agreement handler interface.
Namespace
Drupal\agreementCode
public function getAgreementByUserAndPath(AccountProxyInterface $account, $path);