public function GlossaryHelper::__construct in Search API AZ Glossary 8.4
Same name and namespace in other branches
- 8.3 src/Service/GlossaryHelper.php \Drupal\search_api_glossary\Service\GlossaryHelper::__construct()
GlossaryHelper Constructor.
Parameters
\Drupal\Core\Config\ConfigFactory $config: An instance of ConfigFactory.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.
File
- src/
Service/ GlossaryHelper.php, line 37
Class
- GlossaryHelper
- Search Api Glossary AZ Helper class.
Namespace
Drupal\search_api_glossary\ServiceCode
public function __construct(ConfigFactory $config, ModuleHandlerInterface $module_handler) {
$this->config = $config
->get('search_api_glossary.settings');
$this->moduleHandler = $module_handler;
}