public function AdvancedHelpManager::__construct in Advanced Help 8
Constructs an AdvancedHelpManager instance.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: Theme handler.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
\Drupal\Core\File\FileSystemInterface $file_system: The file handler.
Overrides DefaultPluginManager::__construct
File
- src/
AdvancedHelpManager.php, line 41
Class
- AdvancedHelpManager
- AdvancedHelp plugin manager.
Namespace
Drupal\advanced_helpCode
public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache_backend, TranslationInterface $string_translation, FileSystemInterface $file_system) {
$this->module_handler = $module_handler;
$this->theme_handler = $theme_handler;
$this
->setStringTranslation($string_translation);
$this
->alterInfo('advanced_help');
$this
->setCacheBackend($cache_backend, 'advanced_help', [
'advanced_help',
]);
$this->fileSystem = $file_system;
}