You are here

public function GoogleCSESearch::__construct in Google Custom Search Engine 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Search/GoogleCSESearch.php \Drupal\google_cse\Plugin\Search\GoogleCSESearch::__construct()

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 ConfigurableSearchPluginBase::__construct

File

src/Plugin/Search/GoogleCSESearch.php, line 64

Class

GoogleCSESearch
Handles searching for node entities using the Search module index.

Namespace

Drupal\google_cse\Plugin\Search

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GoogleCSEServices $googleCSEServices, RequestStack $requestStack, ModuleHandlerInterface $moduleHandler, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->googlecseservices = $googleCSEServices;
  $this->requestStack = $requestStack;
  $this->moduleHandler = $moduleHandler;
  $this->renderer = $renderer;
}