protected function DomainCommands::findDomainEnabledEntities in Domain Access 8
Returns a list of the entity types that are domain enabled.
A domain-enabled entity is defined here as an entity type that includes the domain access field(s).
Parameters
string $using_field: The specific field name to look for.
Return value
string[] List of entity machine names that support domain references.
1 call to DomainCommands::findDomainEnabledEntities()
- DomainCommands::reassignLinkedEntities in domain/
src/ Commands/ DomainCommands.php - Reassign entities of the supplied type to the $policy domain.
File
- domain/
src/ Commands/ DomainCommands.php, line 1189
Class
- DomainCommands
- Drush commands for the domain module.
Namespace
Drupal\domain\CommandsCode
protected function findDomainEnabledEntities($using_field = DomainInterface::DOMAIN_ADMIN_FIELD) {
$this
->ensureEntityFieldMap();
$entities = [];
foreach ($this->entityFieldMap as $type => $fields) {
if (array_key_exists($using_field, $fields)) {
$entities[] = $type;
}
}
return $entities;
}