3 namespace Drupal\Core\Plugin\Context;
5 use Drupal\Component\Plugin\PluginManagerInterface;
8 * Provides an interface for plugin managers that support context-aware plugins.
10 interface ContextAwarePluginManagerInterface extends PluginManagerInterface {
13 * Determines plugins whose constraints are satisfied by a set of contexts.
15 * @todo Use context definition objects after
16 * https://www.drupal.org/node/2281635.
18 * @param \Drupal\Component\Plugin\Context\ContextInterface[] $contexts
19 * An array of contexts.
22 * An array of plugin definitions.
24 public function getDefinitionsForContexts(array $contexts = []);