You are here

public function PluginSelectorBase::setPreviouslySelectedPlugins in Plugin 8.2

Sets previously selected plugins.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface[] $plugins:

Return value

$this

Overrides PluginSelectorInterface::setPreviouslySelectedPlugins

See also

self::setKeepPreviouslySelectedPlugins()

self::setCollectPluginConfiguration()

1 call to PluginSelectorBase::setPreviouslySelectedPlugins()
PluginSelectorBase::setKeepPreviouslySelectedPlugins in src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php
Sets whether previously selected plugins must be kept.

File

src/Plugin/Plugin/PluginSelector/PluginSelectorBase.php, line 214

Class

PluginSelectorBase
Provides a base plugin selector.

Namespace

Drupal\plugin\Plugin\Plugin\PluginSelector

Code

public function setPreviouslySelectedPlugins(array $plugins) {
  $this->previouslySelectedPlugins = $plugins;
  return $this;
}