function StylePluginBase::buildSort

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::buildSort()
  2. 8.9.x core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::buildSort()
  3. 11.x core/modules/views/src/Plugin/views/style/StylePluginBase.php \Drupal\views\Plugin\views\style\StylePluginBase::buildSort()

Determines if the style handler should interfere with sorts.

Called by the view builder to see if this style handler wants to interfere with the sorts. If so it should build; if it returns any non-TRUE value, normal sorting will NOT be added to the query.

1 method overrides StylePluginBase::buildSort()
Table::buildSort in core/modules/views/src/Plugin/views/style/Table.php
Determines if the style handler should interfere with sorts.

File

core/modules/views/src/Plugin/views/style/StylePluginBase.php, line 412

Class

StylePluginBase
Base class for views style plugins.

Namespace

Drupal\views\Plugin\views\style

Code

public function buildSort() {
    return TRUE;
}

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