function Select::getArguments

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::getArguments()
  2. 8.9.x core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::getArguments()
  3. 11.x core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::getArguments()

Compiles and returns an associative array of the arguments for this prepared statement.

Parameters

$queryPlaceholder: When collecting the arguments of a subquery, the main placeholder object should be passed as this parameter.

Return value

array An associative array of all placeholder arguments for this query.

Overrides SelectInterface::getArguments

1 call to Select::getArguments()
Select::execute in core/lib/Drupal/Core/Database/Query/Select.php
Runs the query against the database.

File

core/lib/Drupal/Core/Database/Query/Select.php, line 444

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

public function getArguments(?PlaceholderInterface $queryPlaceholder = NULL) {
    if (!isset($queryPlaceholder)) {
        $queryPlaceholder = $this;
    }
    $this->compile($this->connection, $queryPlaceholder);
    return $this->arguments();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.