function ViewsQueryAlter::__construct
Same name in other branches
- 9 core/modules/workspaces/src/ViewsQueryAlter.php \Drupal\workspaces\ViewsQueryAlter::__construct()
- 8.9.x core/modules/workspaces/src/ViewsQueryAlter.php \Drupal\workspaces\ViewsQueryAlter::__construct()
- 11.x core/modules/workspaces/src/ViewsQueryAlter.php \Drupal\workspaces\ViewsQueryAlter::__construct()
Constructs a new ViewsQueryAlter instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.
\Drupal\views\ViewsData $views_data: The views data.
\Drupal\views\Plugin\ViewsHandlerManager $views_join_plugin_manager: The views join plugin manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\workspaces\WorkspaceInformationInterface $workspace_information: The workspace information service.
File
-
core/
modules/ workspaces/ src/ ViewsQueryAlter.php, line 98
Class
- ViewsQueryAlter
- Defines a class for altering views queries.
Namespace
Drupal\workspacesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, WorkspaceManagerInterface $workspace_manager, ViewsData $views_data, ViewsHandlerManager $views_join_plugin_manager, LanguageManagerInterface $language_manager, WorkspaceInformationInterface $workspace_information) {
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->workspaceManager = $workspace_manager;
$this->viewsData = $views_data;
$this->viewsJoinPluginManager = $views_join_plugin_manager;
$this->languageManager = $language_manager;
$this->workspaceInfo = $workspace_information;
$this->adjustedTables = new \WeakMap();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.