function ViewsData::__construct
Same name in this branch
- 11.x core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
Same name in other branches
- 9 core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
- 9 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
- 8.9.x core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
- 8.9.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
- 10 core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
- 10 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
Constructs this ViewsData object.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler class to use for invoking hooks.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
-
core/
modules/ views/ src/ ViewsData.php, line 92
Class
- ViewsData
- Class to manage and lazy load cached views data.
Namespace
Drupal\viewsCode
public function __construct(CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) {
$this->cacheBackend = $cache_backend;
$this->moduleHandler = $module_handler;
$this->languageManager = $language_manager;
$this->langcode = $this->languageManager
->getCurrentLanguage()
->getId();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.