You are here

ConfigRewriterInterface.php in Configuration Rewrite 8

Same filename and directory in other branches
  1. 8.2 src/ConfigRewriterInterface.php

File

src/ConfigRewriterInterface.php
View source
<?php

namespace Drupal\config_rewrite;


/**
 * Provides an interface for the ConfigRewriter.
 */
interface ConfigRewriterInterface {

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

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

  /**
   * @param array $original_config
   * @param array $rewrite
   * @param string $config_name
   * @param string $extensionName
   *
   * @return array
   */
  public function rewriteConfig($original_config, $rewrite, $config_name, $extensionName);

}

Interfaces

Namesort descending Description
ConfigRewriterInterface Provides an interface for the ConfigRewriter.