function hook_views_plugins_sort_alter
hook_views_plugins_sort_alter(array &$plugins)
Modify the list of available views sort handler plugins.
This hook may be used to modify handler properties after they have been specified by other modules.
Parameters
array $plugins: An array of all the existing handler definitions, passed by reference.
See also
\Drupal\views\Plugin\ViewsHandlerManager
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/views/views.api.php, line 1259
- Describes hooks and plugins provided by the Views module.
Code
function hook_views_plugins_sort_alter(array &$plugins) { // Change the 'title' handler class. $plugins['title']['class'] = 'Drupal\\example\\ExampleClass'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.api.php/function/hook_views_plugins_sort_alter/8.1.x