W3cubDocs

/Drupal 8

public function EntityAutocompleteMatcher::__construct

public EntityAutocompleteMatcher::__construct(SelectionPluginManagerInterface $selection_manager)

Constructs a EntityAutocompleteMatcher object.

Parameters

\Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface $selection_manager: The entity reference selection handler plugin manager.

File

core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php, line 27

Class

EntityAutocompleteMatcher
Matcher class to get autocompletion results for entity reference.

Namespace

Drupal\Core\Entity

Code

public function __construct(SelectionPluginManagerInterface $selection_manager) {
  $this->selectionManager = $selection_manager;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityAutocompleteMatcher.php/function/EntityAutocompleteMatcher::__construct/8.1.x