protected function AcquiaContentHubSettingsCommands::returnSettings in Acquia Content Hub 8.2
Extract settings from event.
Parameters
\Drupal\acquia_contenthub\Event\AcquiaContentHubSettingsEvent $event: The settings event.
Return value
array Array of settings object and settings provider.
3 calls to AcquiaContentHubSettingsCommands::returnSettings()
- AcquiaContentHubSettingsCommands::getSettingsFromCoreConfig in src/
Commands/ AcquiaContentHubSettingsCommands.php - Get settings from Drupal Configuration.
- AcquiaContentHubSettingsCommands::getSettingsFromCoreSettings in src/
Commands/ AcquiaContentHubSettingsCommands.php - Get settings from Drupal Core Settings.
- AcquiaContentHubSettingsCommands::getSettingsFromEnvVar in src/
Commands/ AcquiaContentHubSettingsCommands.php - Get settings from Environment variables.
File
- src/
Commands/ AcquiaContentHubSettingsCommands.php, line 164
Class
- AcquiaContentHubSettingsCommands
- Drush commands for getting the Settings used for Acquia Content Hub.
Namespace
Drupal\acquia_contenthub\CommandsCode
protected function returnSettings(AcquiaContentHubSettingsEvent $event) {
return [
'settings' => $event
->getSettings() ?? NULL,
'provider' => $event
->getProvider() ?? '',
];
}