function hook_views_plugins_style_alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/views.api.php \hook_views_plugins_style_alter()
- 10 core/modules/views/views.api.php \hook_views_plugins_style_alter()
Modify the list of available views style plugins.
This hook may be used to modify plugin properties after they have been specified by other modules.
Parameters
array $plugins: An array of all the existing plugin definitions, passed by reference.
See also
\Drupal\views\Plugin\ViewsPluginManager
Related topics
File
- core/
modules/ views/ views.api.php, line 1126 - Describes hooks and plugins provided by the Views module.
Code
function hook_views_plugins_style_alter(array &$plugins) {
// Change the theme hook of a plugin.
$plugins['html_list']['theme'] = 'custom_views_view_list';
}