You are here

interface SettingsInterface in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/SettingsInterface.php \Drupal\social_api\Settings\SettingsInterface
  2. 8 src/Settings/SettingsInterface.php \Drupal\social_api\Settings\SettingsInterface

Defines required methods for a Settings class.

@package Drupal\social_api\Settings

Hierarchy

Expanded class hierarchy of SettingsInterface

All classes that implement SettingsInterface

1 file declares its use of SettingsInterface
NetworkBase.php in src/Plugin/NetworkBase.php

File

src/Settings/SettingsInterface.php, line 12

Namespace

Drupal\social_api\Settings
View source
interface SettingsInterface {

  /**
   * Gets the configuration object.
   *
   * @return \Drupal\Core\Config\ImmutableConfig
   *   The configuration object associated with the settings.
   */
  public function getConfig();

  /**
   * Factory method to create a new settings object.
   *
   * @param \Drupal\Core\Config\ImmutableConfig $config
   *   The configuration object.
   */
  public static function factory(ImmutableConfig $config);

}

Members

Namesort descending Modifiers Type Description Overrides
SettingsInterface::factory public static function Factory method to create a new settings object. 1
SettingsInterface::getConfig public function Gets the configuration object. 1