class Config in DrupalAuth for SimpleSAMLphp 8
Config service.
Hierarchy
- class \Drupal\drupalauth4ssp\Config
 
Expanded class hierarchy of Config
1 string reference to 'Config'
1 service uses Config
File
- src/
Config.php, line 12  
Namespace
Drupal\drupalauth4sspView source
class Config {
  /**
   * Cookie name.
   *
   * @var string
   */
  private $cookieName;
  /**
   * List of allowed URLs.
   *
   * @var string
   */
  private $returnToList;
  /**
   * SimpleSAMLphp secret salt.
   *
   * @var string
   */
  private $secretSalt;
  /**
   * SimpleSAMLphp base path.
   *
   * @var string
   */
  private $basePath;
  /**
   * Constructs a config object.
   *
   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
   *   The config factory.
   */
  public function __construct(ConfigFactoryInterface $config_factory) {
    $config = $config_factory
      ->get('drupalauth4ssp.settings');
    $this->cookieName = $config
      ->get('cookie_name');
    $this->returnToList = $config
      ->get('returnto_list');
    // Get the secretsalt.
    $this->secretSalt = SimpleSAMLConfig::getSecretSalt();
    // Get the baseurlpath.
    $this->basePath = SimpleSAMLConfiguration::getInstance()
      ->getBasePath();
  }
  /**
   * Returns cookie name.
   *
   * @return string
   *   Cookie name.
   */
  public function getCookieName() {
    return $this->cookieName;
  }
  /**
   * Returns allowed "return to" list.
   *
   * @return string
   *   List of allowed return to URLs.
   */
  public function getReturnToList() {
    return $this->returnToList;
  }
  /**
   * Returns secret salt.
   *
   * @return string
   *   Secret salt.
   */
  public function getSecretSalt() {
    return $this->secretSalt;
  }
  /**
   * Returns base path.
   *
   * @return string
   *   Base path.
   */
  public function getBasePath() {
    return $this->basePath;
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            Config:: | 
                  private | property | SimpleSAMLphp base path. | |
| 
            Config:: | 
                  private | property | Cookie name. | |
| 
            Config:: | 
                  private | property | List of allowed URLs. | |
| 
            Config:: | 
                  private | property | SimpleSAMLphp secret salt. | |
| 
            Config:: | 
                  public | function | Returns base path. | |
| 
            Config:: | 
                  public | function | Returns cookie name. | |
| 
            Config:: | 
                  public | function | Returns allowed "return to" list. | |
| 
            Config:: | 
                  public | function | Returns secret salt. | |
| 
            Config:: | 
                  public | function | Constructs a config object. |