Views sort handler plugins
Same name in other branches
- 9 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers
- 8.9.x core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\views_sort_handlers
- 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
Parent topics
File
-
core/
modules/ views/ src/ Plugin/ views/ sort/ SortPluginBase.php, line 10
Classes
Title Sort descending | File name | Summary |
---|---|---|
Broken | core/ |
A special handler to take the place of missing or broken handlers. |
ModerationStateSort | core/ |
Enables sorting for the computed moderation_state field. |
Score | core/ |
Sort handler for sorting by search score. |
SortPluginBase | core/ |
Base sort handler that has no options and performs a simple sort. |
Standard | core/ |
Default implementation of the base sort plugin. |
StatisticsLastCommentName | core/ |
Sort handler, sorts by last comment name which can be in 2 different fields. |
StatisticsLastUpdated | core/ |
Sort handler for the newer of last comment / entity updated. |
Thread | core/ |
Sort handler for ordering by thread. |
ViewsSort | core/ |
Defines a Plugin attribute object for views sort handlers. |
ViewsSort | core/ |
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.