You are here

interface LimitedPluginDiscoveryInterface in Plugin 8.2

Defines a limited plugin discovery.

Hierarchy

Expanded class hierarchy of LimitedPluginDiscoveryInterface

All classes that implement LimitedPluginDiscoveryInterface

File

src/PluginDiscovery/LimitedPluginDiscoveryInterface.php, line 8

Namespace

Drupal\plugin\PluginDiscovery
View source
interface LimitedPluginDiscoveryInterface {

  /**
   * Limits the plugins to discover.
   *
   * If this filter is set, any action for any plugin ID that is not part of the
   * filter must result in a
   * \Drupal\Component\Plugin\Exception\PluginNotFoundException being thrown.
   *
   * @param string[] $plugin_ids
   *   An array of plugin IDs or TRUE to allow all.
   *
   * @return $this
   */
  public function setDiscoveryLimit(array $plugin_ids);

  /**
   * Resets the discovery limit.
   *
   * @return $this
   */
  public function resetDiscoveryLimit();

}

Members

Namesort descending Modifiers Type Description Overrides
LimitedPluginDiscoveryInterface::resetDiscoveryLimit public function Resets the discovery limit. 1
LimitedPluginDiscoveryInterface::setDiscoveryLimit public function Limits the plugins to discover. 1