public function DomainAccessManagerInterface::hasDomainPermissions in Domain Access 8
Checks that a user belongs to the domain and has a set of permissions.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account.
\Drupal\domain\DomainInterface $domain: The domain being checked.
array $permissions: The relevant permissions to check.
string $conjunction: The conjunction AND|OR to use when checking permissions.
Return value
bool Returns TRUE if the user is assigned to the domain and has the necessary permissions.
1 method overrides DomainAccessManagerInterface::hasDomainPermissions()
- DomainAccessManager::hasDomainPermissions in domain_access/
src/ DomainAccessManager.php - Checks that a user belongs to the domain and has a set of permissions.
File
- domain_access/
src/ DomainAccessManagerInterface.php, line 91
Class
- DomainAccessManagerInterface
- Checks the access status of entities based on domain settings.
Namespace
Drupal\domain_accessCode
public function hasDomainPermissions(AccountInterface $account, DomainInterface $domain, array $permissions, $conjunction = 'AND');