public function DomainAccessManagerInterface::checkEntityAccess in Domain Access 8
Compare the entity values against a user's account assignments.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity being checked for access.
\Drupal\Core\Session\AccountInterface $account: The account of the user performing the action.
Return value
bool Returns TRUE if the user has access to the domain.
1 method overrides DomainAccessManagerInterface::checkEntityAccess()
- DomainAccessManager::checkEntityAccess in domain_access/
src/ DomainAccessManager.php - Compare the entity values against a user's account assignments.
File
- domain_access/
src/ DomainAccessManagerInterface.php, line 60
Class
- DomainAccessManagerInterface
- Checks the access status of entities based on domain settings.
Namespace
Drupal\domain_accessCode
public function checkEntityAccess(FieldableEntityInterface $entity, AccountInterface $account);