You are here

public function SelectionPluginManager::__construct in Entity reference 8

Constructs a WidgetPluginManager object.

File

lib/Drupal/entityreference/Plugin/Type/Selection/SelectionPluginManager.php, line 29
Definition of Drupal\entityreference\Plugin\Type\Selection\SelectionPluginManager.

Class

SelectionPluginManager
Plugin type manager for field widgets.

Namespace

Drupal\entityreference\Plugin\Type\Selection

Code

public function __construct() {
  $this->baseDiscovery = new AnnotatedClassDiscovery('entityreference', 'selection');
  $this->discovery = new CacheDecorator($this->baseDiscovery, $this->cache_key);
}