You are here

public function SearchPage::__construct in Simple Google Custom Search Engine 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/SearchPage.php \Drupal\simple_gse_search\Controller\SearchPage::__construct()

Constructs a new SearchPage object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config: Config factory.

File

src/Controller/SearchPage.php, line 27

Class

SearchPage
Defines a controller for displaying search results from Google CSE.

Namespace

Drupal\simple_gse_search\Controller

Code

public function __construct(ConfigFactoryInterface $config) {
  $this->searchConfig = $config
    ->get('simple_gse_search.settings');
}