TableSortExtender::getSort

protected TableSortExtender::getSort() Determine the current sort direction. Return value The current sort direction ("asc" or "desc"). See also tablesort_get_sort() File core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 69 Class TableSortExtender Query extender class for tablesort queries. Namespace Drupal\Core\Database\Query Code protected function getSort() { return tablesort_get_sort($this->header); }

TableSortExtender::$header

The array of fields that can be sorted by. File core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 15 Class TableSortExtender Query extender class for tablesort queries. Namespace Drupal\Core\Database\Query Code protected $header = array();

TableSortExtender

Query extender class for tablesort queries. Hierarchy class \Drupal\Core\Database\Query\SelectExtender implements SelectInterfaceclass \Drupal\Core\Database\Query\TableSortExtender File core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 10 Namespace Drupal\Core\Database\Query Members Name Modifiers Type Description SelectExtender::$connection protected property The connection object on which to run this query. SelectExtender::$placeholder protected pr

TablesInterface::addField

public TablesInterface::addField($field, $type, $langcode) Adds a field to a database query. Parameters string $field: If it doesn't contain a dot, then an entity base field name. If it contains a dot, then either field name dot field column or field name dot delta dot field column. Delta can be a numeric value or a "%delta" for any value. string $type: Join type, can either be INNER or LEFT. string $langcode: The language code the field values are to be queried in. Return value string The re

tablesort.inc

Functions to aid in the creation of sortable tables. All tables created when rendering a '#type' => 'table' have the option of having column headers that the user can click on to sort the table by that column. File core/includes/tablesort.inc Functions Name Description tablesort_get_order Determines the current sort criterion. tablesort_get_query_parameters Composes a URL query parameter array for table sorting links. tablesort_get_sort Determines the current sort direction

tablesort-indicator.html.twig

Default theme implementation for displaying a tablesort indicator. Available variables: style: Either 'asc' or 'desc', indicating the sorting direction. File core/modules/system/templates/tablesort-indicator.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

TablesInterface::isFieldCaseSensitive

public TablesInterface::isFieldCaseSensitive($field_name) Determines whether the given field is case sensitive. This information can only be provided after it was added with addField(). Parameters string $field_name: The name of the field. Return value bool|null TRUE if the field is case sensitive, FALSE if not. Returns NULL when the field did not define if it is case sensitive or not. File core/lib/Drupal/Core/Entity/Query/Sql/TablesInterface.php, line 45 Class TablesInterface Adds tabl

Tableselect::processTableselect

public static Tableselect::processTableselect(&$element, FormStateInterface $form_state, &$complete_form) Creates checkbox or radio elements to populate a tableselect table. Parameters array $element: An associative array containing the properties and children of the tableselect element. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. array $complete_form: The complete form structure. Return value array The processed element. File core/lib/Drupal/Core/

TablesInterface

Adds tables and fields to the SQL entity query. Hierarchy interface \Drupal\Core\Entity\Query\Sql\TablesInterface File core/lib/Drupal/Core/Entity/Query/Sql/TablesInterface.php, line 8 Namespace Drupal\Core\Entity\Query\Sql Members Name Modifiers Type Description TablesInterface::addField public function Adds a field to a database query. TablesInterface::isFieldCaseSensitive public function Determines whether the given field is case sensitive.

Tableselect::valueCallback

public static Tableselect::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to