You are here

public function NameAutocomplete::__construct in Name Field 8

Constructor for the NameAutocomplete class.

Parameters

NameOptionsProvider $options_provider: Name options provider.

File

src/NameAutocomplete.php, line 39

Class

NameAutocomplete
Defines a helper class to get name field autocompletion results.

Namespace

Drupal\name

Code

public function __construct(NameOptionsProvider $options_provider) {
  $this->optionsProvider = $options_provider;
}