public function GoogleCSEServices::__construct in Google Custom Search Engine 8.2
Same name and namespace in other branches
- 8.3 src/GoogleCSEServices.php \Drupal\google_cse\GoogleCSEServices::__construct()
GoogleCSEServices constructor.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $requestStack: RequestStack object.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config object.
\Drupal\Core\Language\LanguageManager $languageManager: Langauge manager service object.
\Drupal\Core\Render\Renderer $renderer: Renderer service object.
\Drupal\Core\Extension\ModuleHandler $moduleHandler: ModuleHandler service object.
File
- src/
GoogleCSEServices.php, line 74
Class
- GoogleCSEServices
- Additional functions as services for Google CSE.
Namespace
Drupal\google_cseCode
public function __construct(RequestStack $requestStack, ConfigFactoryInterface $configFactory, LanguageManager $languageManager, Renderer $renderer, ModuleHandler $moduleHandler) {
$this->requestStack = $requestStack;
$this->CSEconfig = $configFactory
->get('search.page.google_cse_search');
$this->languageManager = $languageManager;
$this->renderer = $renderer;
$this->moduleHandler = $moduleHandler;
}