Views sort handler plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers
  2. 8.9.x core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers
  3. 10 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 attributed with the \Drupal\views\Attribute\ViewsSort attribute, 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

Title Sort descending File name Summary
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, sorts by last comment name which can 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/Attribute/ViewsSort.php Defines a Plugin attribute object for views sort handlers.
ViewsSort core/modules/views/src/Annotation/ViewsSort.php Defines a Plugin annotation object for views sort handlers.

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