You are here

public static function SettingsBase::factory in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/SettingsBase.php \Drupal\social_api\Settings\SettingsBase::factory()
  2. 8 src/Settings/SettingsBase.php \Drupal\social_api\Settings\SettingsBase::factory()

Factory method to create a new settings object.

Parameters

\Drupal\Core\Config\ImmutableConfig $config: The configuration object.

Overrides SettingsInterface::factory

File

src/Settings/SettingsBase.php, line 34

Class

SettingsBase
Base class for implementor module settings.

Namespace

Drupal\social_api\Settings

Code

public static function factory(ImmutableConfig $config) {
  return new static($config);
}