function EntityAutocompleteMatcher::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php \Drupal\Core\Entity\EntityAutocompleteMatcher::__construct()
  2. 10 core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php \Drupal\Core\Entity\EntityAutocompleteMatcher::__construct()
  3. 11.x core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php \Drupal\Core\Entity\EntityAutocompleteMatcher::__construct()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.