You are here

protected function AcquiaContentHubSettingsCommands::getSettingsFromEnvVar in Acquia Content Hub 8.2

Get settings from Environment variables.

Return value

array Array of settings object and settings provider.

1 call to AcquiaContentHubSettingsCommands::getSettingsFromEnvVar()
AcquiaContentHubSettingsCommands::getContentHubSettings in src/Commands/AcquiaContentHubSettingsCommands.php
Get Content Hub settings.

File

src/Commands/AcquiaContentHubSettingsCommands.php, line 148

Class

AcquiaContentHubSettingsCommands
Drush commands for getting the Settings used for Acquia Content Hub.

Namespace

Drupal\acquia_contenthub\Commands

Code

protected function getSettingsFromEnvVar() : array {
  $event = new AcquiaContentHubSettingsEvent();
  $env_var_setter = new GetSettingsFromEnvVar($this->loggerChannel, $this->messenger);
  $env_var_setter
    ->onGetSettings($event);
  return $this
    ->returnSettings($event);
}