You are here

interface ConfigInterface in Backup and Migrate 5.0.x

Provides an interface defining a backup source.

Hierarchy

Expanded class hierarchy of ConfigInterface

All classes that implement ConfigInterface

4 files declare their use of ConfigInterface
BackupMigrate.php in src/Core/Main/BackupMigrate.php
DrupalConfigHelper.php in src/Drupal/Config/DrupalConfigHelper.php
PluginManager.php in src/Core/Plugin/PluginManager.php
PluginManagerInterface.php in src/Core/Plugin/PluginManagerInterface.php

File

src/Core/Config/ConfigInterface.php, line 8

Namespace

Drupal\backup_migrate\Core\Config
View source
interface ConfigInterface {

  /**
   * Get a setting value.
   *
   * @param string $key
   *   The key for the setting.
   * @param $default
   *   The default to return if there is no value set for this key.
   *
   * @return mixed
   *   The value of the setting.
   */
  public function get($key, $default = NULL);

  /**
   * Set a setting value.
   *
   * @param string $key
   *   The key for the setting.
   * @param mixed $value
   *   The value for the setting.
   */
  public function set($key, $value);

  /**
   * Determine if the given key has had a value set for it.
   *
   * @param $key
   *
   * @return bool
   */
  public function keyIsSet($key);

  /**
   * Get all settings as an associative array.
   *
   * @return array
   *   All of the settings in this profile
   */
  public function toArray();

  /**
   * Set all from an array.
   *
   * @param array $values
   *   An associative array of settings.
   */
  public function fromArray(array $values);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigInterface::fromArray public function Set all from an array. 1
ConfigInterface::get public function Get a setting value. 1
ConfigInterface::keyIsSet public function Determine if the given key has had a value set for it. 1
ConfigInterface::set public function Set a setting value. 1
ConfigInterface::toArray public function Get all settings as an associative array. 1