You are here

public function DomainSourceCommands::alterDomainInfo in Domain Access 8

Provides additional information to domain:info.

@hook alter domain:info

File

domain_source/src/Commands/DomainSourceCommands.php, line 37

Class

DomainSourceCommands
Drush commands for the domain source module.

Namespace

Drupal\domain_source\Commands

Code

public function alterDomainInfo($result, CommandData $commandData) {

  // Display which entities are enabled for domain by checking for the fields.
  $result['domain_source_entities'] = $this
    ->getFieldEntities(DomainSourceElementManagerInterface::DOMAIN_SOURCE_FIELD);
  return $result;
}