public function DomainAccessCommands::alterDomainInfo in Domain Access 8
Provides additional information to domain:info.
@hook alter domain:info
File
- domain_access/
src/ Commands/ DomainAccessCommands.php, line 37
Class
- DomainAccessCommands
- Drush commands for the domain access module.
Namespace
Drupal\domain_access\CommandsCode
public function alterDomainInfo($result, CommandData $commandData) {
// Display which entities are enabled for domain by checking for the fields.
$result['domain_access_entities'] = $this
->getFieldEntities(DomainAccessManagerInterface::DOMAIN_ACCESS_FIELD);
return $result;
}