You are here

interface ConfigInterface in Backup and Migrate 8.4

Provides an interface defining a backup source.

Hierarchy

Expanded class hierarchy of ConfigInterface

All classes that implement ConfigInterface

7 files declare their use of ConfigInterface
BackupMigrate.php in lib/backup_migrate_core/src/Main/BackupMigrate.php
Config.php in lib/backup_migrate_core/src/Config/Config.php
ConfigurableInterface.php in lib/backup_migrate_core/src/Config/ConfigurableInterface.php
DrupalConfigHelper.php in src/Config/DrupalConfigHelper.php
DrupalSiteArchiveSource.php in src/Source/DrupalSiteArchiveSource.php

... See full list

File

lib/backup_migrate_core/src/Config/ConfigInterface.php, line 8

Namespace

BackupMigrate\Core\Config
View source
interface ConfigInterface {

  /**
   * Get a setting value.
   *
   * @param string $key The key for the setting.
   * @param null $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($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