You are here

public static function DomainAccessManagerInterface::getAccessValues in Domain Access 8

Get the domain access field values from an entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity to retrieve field data from.

string $field_name: The name of the field that holds our data.

Return value

array The domain access field values.

1 method overrides DomainAccessManagerInterface::getAccessValues()
DomainAccessManager::getAccessValues in domain_access/src/DomainAccessManager.php
Get the domain access field values from an entity.

File

domain_access/src/DomainAccessManagerInterface.php, line 36

Class

DomainAccessManagerInterface
Checks the access status of entities based on domain settings.

Namespace

Drupal\domain_access

Code

public static function getAccessValues(FieldableEntityInterface $entity, $field_name = DomainAccessManagerInterface::DOMAIN_ACCESS_FIELD);