You are here

public function AgreementHandlerInterface::isAnonymousAgreement in Agreement 3.0.x

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

Code

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