You are here

public function AutocompleteController::__construct in Quick Node Block 8

Construct the Node-Title.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection which will be used to check nid and title.

File

src/Controller/AutocompleteController.php, line 30

Class

AutocompleteController
Defines a route controller for entity autocomplete form elements.

Namespace

Drupal\quick_node_block\Controller

Code

public function __construct(Connection $connection) {
  $this->connection = $connection;
}