public function AgreementHandlerInterface::hasAgreed in Agreement 8.2
Same name and namespace in other branches
- 3.0.x src/AgreementHandlerInterface.php \Drupal\agreement\AgreementHandlerInterface::hasAgreed()
Check the status of an user account for a particular agreement.
Parameters
\Drupal\agreement\Entity\Agreement $agreement: The agreement to check if a user has agreed.
\Drupal\Core\Session\AccountProxyInterface $account: The user account to check.
Return value
bool TRUE if the user account has agreed to this agreement.
1 method overrides AgreementHandlerInterface::hasAgreed()
- AgreementHandler::hasAgreed in src/
AgreementHandler.php - Check the status of an user account for a particular agreement.
File
- src/
AgreementHandlerInterface.php, line 25
Class
- AgreementHandlerInterface
- Agreement handler interface.
Namespace
Drupal\agreementCode
public function hasAgreed(Agreement $agreement, AccountProxyInterface $account);