You are here

public function GoogleCSEBlock::__construct in Google Custom Search Engine 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/GoogleCSEBlock.php \Drupal\google_cse\Plugin\Block\GoogleCSEBlock::__construct()

Constructs a new GoogleCSEBlock 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.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/GoogleCSEBlock.php, line 53

Class

GoogleCSEBlock
Provides a 'Google CSE' block.

Namespace

Drupal\google_cse\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->languageManager = $language_manager;
}