You are here

public function EntityLegalDocumentInterface::userHasAgreed in Entity Legal 8.2

Same name and namespace in other branches
  1. 4.0.x src/EntityLegalDocumentInterface.php \Drupal\entity_legal\EntityLegalDocumentInterface::userHasAgreed()
  2. 3.0.x src/EntityLegalDocumentInterface.php \Drupal\entity_legal\EntityLegalDocumentInterface::userHasAgreed()

Check if the given user has agreed to the current version of this document.

Parameters

\Drupal\Core\Session\AccountInterface|null $account: The Drupal user account to check. Default logged in user if not provided.

Return value

bool Whether or not the user has agreed to the current version.

1 method overrides EntityLegalDocumentInterface::userHasAgreed()
EntityLegalDocument::userHasAgreed in src/Entity/EntityLegalDocument.php
Check if the given user has agreed to the current version of this document.

File

src/EntityLegalDocumentInterface.php, line 107

Class

EntityLegalDocumentInterface
Interface EntityLegalDocumentInterface.

Namespace

Drupal\entity_legal

Code

public function userHasAgreed(AccountInterface $account = NULL);