public function GoogleCSEServices::__construct in Google Custom Search Engine 8.3
Same name and namespace in other branches
- 8.2 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.
\Drupal\Core\Pager\PagerManagerInterface $pagerManager: PagerManger service object.
File
- src/
GoogleCSEServices.php, line 84
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, PagerManagerInterface $pagerManager) {
$this->requestStack = $requestStack;
$this->CSEconfig = $configFactory
->get('search.page.google_cse_search');
$this->languageManager = $languageManager;
$this->renderer = $renderer;
$this->moduleHandler = $moduleHandler;
$this->pagerManager = $pagerManager;
}