You are here

Example: Tablesort in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 tablesort_example/tablesort_example.module \tablesort_example
  2. 7 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

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

Functions

Namesort descending Location Description
tablesort_example_install modules/tablesort_example/tablesort_example.install Implements hook_install().
tablesort_example_schema modules/tablesort_example/tablesort_example.install Implements hook_schema().
tablesort_example_uninstall modules/tablesort_example/tablesort_example.install Implements hook_uninstall().

Classes

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