public function EntityLegalDocument::getPermissionExistingUser in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Entity/EntityLegalDocument.php \Drupal\entity_legal\Entity\EntityLegalDocument::getPermissionExistingUser()
- 4.0.x src/Entity/EntityLegalDocument.php \Drupal\entity_legal\Entity\EntityLegalDocument::getPermissionExistingUser()
Get the permission name for new users accepting this document.
Return value
string The user permission, used with user_access.
Overrides EntityLegalDocumentInterface::getPermissionExistingUser
1 call to EntityLegalDocument::getPermissionExistingUser()
- EntityLegalDocument::userMustAgree in src/
Entity/ EntityLegalDocument.php - Checks to see if a given user can agree to this document.
File
- src/
Entity/ EntityLegalDocument.php, line 287
Class
- EntityLegalDocument
- Defines the entity legal document entity.
Namespace
Drupal\entity_legal\EntityCode
public function getPermissionExistingUser() {
return 'legal re-accept ' . $this
->id();
}