public function ViewsPhp::query in Views PHP 8
Same name in this branch
- 8 src/Plugin/views/filter/ViewsPhp.php \Drupal\views_php\Plugin\views\filter\ViewsPhp::query()
- 8 src/Plugin/views/sort/ViewsPhp.php \Drupal\views_php\Plugin\views\sort\ViewsPhp::query()
- 8 src/Plugin/views/field/ViewsPhp.php \Drupal\views_php\Plugin\views\field\ViewsPhp::query()
Called to add the sort to a query.
Overrides SortPluginBase::query
File
- src/
Plugin/ views/ sort/ ViewsPhp.php, line 63 - Definition of Drupal\views_php\Plugin\views\sort\ViewsPhp.
Class
- ViewsPhp
- A handler to sort a view using PHP defined by the administrator.
Namespace
Drupal\views_php\Plugin\views\sortCode
public function query() {
// Inform views_php_views_pre_execute() to seize control over the query.
$this->view->views_php = TRUE;
}