You are here

interface ConfigRewriterInterface in Configuration Rewrite 8.2

Same name and namespace in other branches
  1. 8 src/ConfigRewriterInterface.php \Drupal\config_rewrite\ConfigRewriterInterface

Provides an interface for the ConfigRewriter.

Hierarchy

Expanded class hierarchy of ConfigRewriterInterface

All classes that implement ConfigRewriterInterface

File

src/ConfigRewriterInterface.php, line 8

Namespace

Drupal\config_rewrite
View source
interface ConfigRewriterInterface {

  /**
   * Extension sub-directory containing default configuration for installation.
   */
  const CONFIG_REWRITE_DIRECTORY = 'config/rewrite';

  /**
   * Rewrites module config.
   *
   * @param $module
   *   The name of a module (without the .module extension).
   */
  public function rewriteModuleConfig($module);

  /**
   * Returns rewritten configuration.
   *
   * @param array $original_config
   *   The original configuration array to rewrite.
   * @param array $rewrite
   *   An array of configuration rewrites.
   *
   * @return array
   *   The rewritten config.
   */
  public function rewriteConfig($original_config, $rewrite);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigRewriterInterface::CONFIG_REWRITE_DIRECTORY constant Extension sub-directory containing default configuration for installation.
ConfigRewriterInterface::rewriteConfig public function Returns rewritten configuration. 1
ConfigRewriterInterface::rewriteModuleConfig public function Rewrites module config. 1