Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tables.php

function Tables::__construct

Same name in this branch
  1. 11.1.x core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()

Parameters

\Drupal\Core\Database\Query\SelectInterface $sql_query: The SQL query.

2 calls to Tables::__construct()
Tables::__construct in core/modules/workspaces/src/EntityQuery/Tables.php
Tables::__construct in core/modules/workspaces/src/EntityQuery/Tables.php
1 method overrides Tables::__construct()
Tables::__construct in core/modules/workspaces/src/EntityQuery/Tables.php

File

core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 71

Class

Tables
Adds database tables and fields to the SQL entity query.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function __construct(SelectInterface $sql_query) {
    $this->sqlQuery = $sql_query;
    $this->entityTypeManager = \Drupal::entityTypeManager();
    $this->entityFieldManager = \Drupal::service('entity_field.manager');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal