public static function DomainAccessManager::getAllValue in Domain Access 8
Get the all affiliates field values from an entity.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity to retrieve field data from.
Return value
bool Returns TRUE if the entity is sent to all affiliates.
Overrides DomainAccessManagerInterface::getAllValue
2 calls to DomainAccessManager::getAllValue()
- DomainAccessManager::checkEntityAccess in domain_access/
src/ DomainAccessManager.php - Compare the entity values against a user's account assignments.
- 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/ DomainAccessManager.php, line 94
Class
- DomainAccessManager
- Checks the access status of entities based on domain settings.
Namespace
Drupal\domain_accessCode
public static function getAllValue(FieldableEntityInterface $entity) {
return $entity
->hasField(DomainAccessManagerInterface::DOMAIN_ACCESS_ALL_FIELD) ? $entity
->get(DomainAccessManagerInterface::DOMAIN_ACCESS_ALL_FIELD)->value : NULL;
}