You are here

ConfigFilterManagerInterface.php in Config Filter 8

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

File

src/ConfigFilterManagerInterface.php
View source
<?php

namespace Drupal\config_filter;


/**
 * Interface for a ConfigFilterManager.
 */
interface ConfigFilterManagerInterface {

  /**
   * Get the applicable filters for given storage names.
   *
   * @param string[] $storage_names
   *   The names of the storage plugins apply to.
   * @param string[] $excluded
   *   The ids of filters to exclude.
   *
   * @return \Drupal\config_filter\Config\StorageFilterInterface[]
   *   The configured filter instances, keyed by filter id.
   */
  public function getFiltersForStorages(array $storage_names, array $excluded = []);

  /**
   * Get a configured filter instance by (plugin) id.
   *
   * @param string $id
   *   The plugin id of the filter to load.
   *
   * @return \Drupal\config_filter\Config\StorageFilterInterface|null
   *   The ConfigFilter.
   */
  public function getFilterInstance($id);

}

Interfaces

Namesort descending Description
ConfigFilterManagerInterface Interface for a ConfigFilterManager.