You are here

public function FlagIndexer::__construct in Flag Search API 8

Constructs a \Drupal\Component\Plugin\PluginBase object.

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.

Overrides IndexPluginBase::__construct

File

src/Plugin/search_api/processor/FlagIndexer.php, line 62

Class

FlagIndexer
Search API Processor for indexing flags.

Namespace

Drupal\flag_search_api\Plugin\search_api\processor

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, FlagService $flagService, LoggerInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->flagService = $flagService;
  $this->logger = $logger;
}