You are here

function QueryPluginBase::execute in Views (for Drupal 7) 8.3

Executes the query and fills the associated view object with according values.

Values to set: $view->result, $view->total_rows, $view->execute_time, $view->pager['current_page'].

$view->result should contain an array of objects. The array must use a numeric index starting at 0.

Parameters

view $view: The view which is executed.

2 methods override QueryPluginBase::execute()
QueryTest::execute in tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/query/QueryTest.php
Implements Drupal\views\Plugin\views\query\QueryPluginBase::execute().
Sql::execute in lib/Drupal/views/Plugin/views/query/Sql.php
Executes the query and fills the associated view object with according values.

File

lib/Drupal/views/Plugin/views/query/QueryPluginBase.php, line 73
Definition of Drupal\views\Plugin\views\query\QueryPluginBase.

Class

QueryPluginBase
@todo.

Namespace

Drupal\views\Plugin\views\query

Code

function execute(ViewExecutable $view) {
}