SettingsBase.php in Social API 8.2
Same filename and directory in other branches
Namespace
Drupal\social_api\SettingsFile
src/Settings/SettingsBase.phpView source
<?php
namespace Drupal\social_api\Settings;
use Drupal\Core\Config\ImmutableConfig;
/**
* Base class for implementor module settings.
*
* @package Drupal\social_api\Settings
*/
abstract class SettingsBase implements SettingsInterface {
/**
* The configuration object containing the data from the configuration form.
*
* @var \Drupal\Core\Config\ImmutableConfig
*/
protected $config;
/**
* Creates a new settings object.
*
* @param \Drupal\Core\Config\ImmutableConfig $config
* The configuration object associated to the settings.
*/
public function __construct(ImmutableConfig $config) {
$this->config = $config;
}
/**
* {@inheritdoc}
*/
public static function factory(ImmutableConfig $config) {
return new static($config);
}
/**
* {@inheritdoc}
*/
public function getConfig() {
return $this->config;
}
}
Classes
Name | Description |
---|---|
SettingsBase | Base class for implementor module settings. |