You are here

Views sort handler plugins in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers
  2. 9 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers

Plugins that handle sorting for Views.

Sort handlers extend \Drupal\views\Plugin\views\sort:SortPluginBase. They must be annotated with \Drupal\views\Annotation\ViewsSort annotation, and they must be in plugin directory Plugin\views\sort.

See also

Plugin API

Parent topics

File

core/modules/views/src/Plugin/views/sort/SortPluginBase.php, line 10

Classes

Namesort descending Location Description
Broken core/modules/views/src/Plugin/views/sort/Broken.php A special handler to take the place of missing or broken handlers.
ModerationStateSort core/modules/content_moderation/src/Plugin/views/sort/ModerationStateSort.php Enables sorting for the computed moderation_state field.
Score core/modules/search/src/Plugin/views/sort/Score.php Sort handler for sorting by search score.
SortPluginBase core/modules/views/src/Plugin/views/sort/SortPluginBase.php Base sort handler that has no options and performs a simple sort.
Standard core/modules/views/src/Plugin/views/sort/Standard.php Default implementation of the base sort plugin.
StatisticsLastCommentName core/modules/comment/src/Plugin/views/sort/StatisticsLastCommentName.php Sort handler to sort by last comment name which might be in 2 different fields.
StatisticsLastUpdated core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php Sort handler for the newer of last comment / entity updated.
Thread core/modules/comment/src/Plugin/views/sort/Thread.php Sort handler for ordering by thread.
ViewsSort core/modules/views/src/Annotation/ViewsSort.php Defines a Plugin annotation object for views sort handlers.