public function EntityLegalDocumentInterface::userHasAgreed in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/EntityLegalDocumentInterface.php \Drupal\entity_legal\EntityLegalDocumentInterface::userHasAgreed()
- 4.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_legalCode
public function userHasAgreed(AccountInterface $account = NULL);