You are here

Example: Tablesort in Examples for Developers 8

Same name and namespace in other branches
  1. 7 tablesort_example/tablesort_example.module \tablesort_example
  2. 3.x modules/tablesort_example/tablesort_example.module \tablesort_example

Example of a sortable table display. Three columns are sortable (Numbers, Letters and Mixture) We are using TableSort Extender extend('Drupal\Core\Database\Query\TableSortExtender')

Parent topics

File

tablesort_example/tablesort_example.module, line 8
Module file for tablesort_example.

Functions

Classes

Namesort descending Location Description
TableSortExampleTest tablesort_example/tests/src/Functional/TableSortExampleTest.php Verify the tablesort functionality.