You are here

public function AgreementHandlerInterface::getAgreementByUserAndPath in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 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\agreement

Code

public function getAgreementByUserAndPath(AccountProxyInterface $account, $path);