You are here

public function AgreementHandlerInterface::canAgree in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 src/AgreementHandlerInterface.php \Drupal\agreement\AgreementHandlerInterface::canAgree()

Check if an user can bypass the agreement or if the agreement applies.

Parameters

\Drupal\agreement\Entity\Agreement $agreement: The agreement to check roles.

\Drupal\Core\Session\AccountProxyInterface $account: The user account to check bypass permission.

1 method overrides AgreementHandlerInterface::canAgree()
AgreementHandler::canAgree in src/AgreementHandler.php
Check if an user can bypass the agreement or if the agreement applies.

File

src/AgreementHandlerInterface.php, line 48

Class

AgreementHandlerInterface
Agreement handler interface.

Namespace

Drupal\agreement

Code

public function canAgree(Agreement $agreement, AccountProxyInterface $account);