You are here

public function LimitedPluginDiscoveryInterface::setDiscoveryLimit in Plugin 8.2

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.

Parameters

string[] $plugin_ids: An array of plugin IDs or TRUE to allow all.

Return value

$this

1 method overrides LimitedPluginDiscoveryInterface::setDiscoveryLimit()
LimitedPluginDiscoveryDecorator::setDiscoveryLimit in src/PluginDiscovery/LimitedPluginDiscoveryDecorator.php
Limits the plugins to discover.

File

src/PluginDiscovery/LimitedPluginDiscoveryInterface.php, line 22

Class

LimitedPluginDiscoveryInterface
Defines a limited plugin discovery.

Namespace

Drupal\plugin\PluginDiscovery

Code

public function setDiscoveryLimit(array $plugin_ids);