public function EntityAutocompleteMatcher::__construct in Select 2 8
Constructs a EntityAutocompleteMatcher object.
Parameters
\Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface $selection_manager: The entity reference selection handler plugin manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
File
- src/
EntityAutocompleteMatcher.php, line 36
Class
- EntityAutocompleteMatcher
- Matcher class to get autocompletion results for entity reference.
Namespace
Drupal\select2Code
public function __construct(SelectionPluginManagerInterface $selection_manager, ModuleHandlerInterface $module_handler) {
$this->selectionManager = $selection_manager;
$this->moduleHandler = $module_handler;
}