You are here

public function ViewsQueryAlter::__construct in Entity API 8

Constructs a new ViewsQueryAlter object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/QueryAccess/ViewsQueryAlter.php, line 76

Class

ViewsQueryAlter
Defines a class for altering views queries.

Namespace

Drupal\entity\QueryAccess

Code

public function __construct(Connection $connection, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, RequestStack $request_stack) {
  $this->connection = $connection;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
  $this->requestStack = $request_stack;
}