public function AgreementHandlerInterface::isAnonymousAgreement in Agreement 8.2
Same name and namespace in other branches
- 3.0.x src/AgreementHandlerInterface.php \Drupal\agreement\AgreementHandlerInterface::isAnonymousAgreement()
Checks if we're processing an anonymous agreement.
Parameters
\Drupal\agreement\Entity\Agreement $agreement: The agreement to check for anonymous support.
\Drupal\Core\Session\AccountProxyInterface $account: The user account to check.
Return value
bool TRUE if the user is anonymous and the current agreement applies to anonymous users. Otherwise FALSE.
1 method overrides AgreementHandlerInterface::isAnonymousAgreement()
- AgreementHandler::isAnonymousAgreement in src/
AgreementHandler.php - Checks if we're processing an anonymous agreement.
File
- src/
AgreementHandlerInterface.php, line 92
Class
- AgreementHandlerInterface
- Agreement handler interface.
Namespace
Drupal\agreementCode
public function isAnonymousAgreement(Agreement $agreement, AccountProxyInterface $account);