You are here

public function ViewsQueryAlter::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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.

File

core/modules/workspaces/src/ViewsQueryAlter.php, line 82

Class

ViewsQueryAlter
Defines a class for altering views queries.

Namespace

Drupal\workspaces

Code

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) {
  $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;
}