You are here

public function BasicTitleSearch::__construct in Fast Autocomplete 8

BasicTitleSearch constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

Overrides PluginBase::__construct

File

src/Plugin/Search/BasicTitleSearch.php, line 67

Class

BasicTitleSearch
Provides a basic node title search plugin.

Namespace

Drupal\fac\Plugin\Search

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->database = $database;
  $this->stringTranslation = $string_translation;
  $this->entityTypeManager = $entity_type_manager;
}