You are here

class AcquiaContentHubSettingsEvent in Acquia Content Hub 8.2

The event dispatched to find settings for the ContentHub Service.

Hierarchy

Expanded class hierarchy of AcquiaContentHubSettingsEvent

8 files declare their use of AcquiaContentHubSettingsEvent
AcquiaContentHubSettingsCommands.php in src/Commands/AcquiaContentHubSettingsCommands.php
ClientFactory.php in src/Client/ClientFactory.php
GetSettingsFromCoreConfig.php in src/EventSubscriber/GetSettings/GetSettingsFromCoreConfig.php
GetSettingsFromCoreSettings.php in src/EventSubscriber/GetSettings/GetSettingsFromCoreSettings.php
GetSettingsFromEnvVar.php in src/EventSubscriber/GetSettings/GetSettingsFromEnvVar.php

... See full list

File

src/Event/AcquiaContentHubSettingsEvent.php, line 12

Namespace

Drupal\acquia_contenthub\Event
View source
class AcquiaContentHubSettingsEvent extends Event {

  /**
   * The ContentHubClient settings object.
   *
   * @var \Acquia\ContentHubClient\Settings
   */
  protected $settings;

  /**
   * The provider of the settings configuration.
   *
   * @var string
   */
  protected $provider;

  /**
   * Gets the ContentHubClient settings object.
   *
   * @return \Acquia\ContentHubClient\Settings
   *   The Content Hub client settings.
   */
  public function getSettings() {
    return $this->settings;
  }

  /**
   * Set the ContentHubClient settings object.
   *
   * @param \Acquia\ContentHubClient\Settings $settings
   *   The Content Hub client settings.
   */
  public function setSettings(Settings $settings) {
    $this->settings = $settings;
  }

  /**
   * Gets the providers of the settings object.
   *
   * @return string
   *   The Provider.
   */
  public function getProvider() {
    return $this->provider;
  }

  /**
   * Sets the provider of the settings object.
   *
   * @param string $provider
   *   The Provider.
   */
  public function setProvider($provider) {
    $this->provider = $provider;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AcquiaContentHubSettingsEvent::$provider protected property The provider of the settings configuration.
AcquiaContentHubSettingsEvent::$settings protected property The ContentHubClient settings object.
AcquiaContentHubSettingsEvent::getProvider public function Gets the providers of the settings object.
AcquiaContentHubSettingsEvent::getSettings public function Gets the ContentHubClient settings object.
AcquiaContentHubSettingsEvent::setProvider public function Sets the provider of the settings object.
AcquiaContentHubSettingsEvent::setSettings public function Set the ContentHubClient settings object.