function ViewsUiThemeHooks::theme
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ views_ui/ src/ Hook/ ViewsUiThemeHooks.php, line 35
Class
- ViewsUiThemeHooks
- Hook implementations for views_ui.
Namespace
Drupal\views_ui\HookCode
public function theme() : array {
return [
// Edit a view.
'views_ui_display_tab_setting' => [
'variables' => [
'description' => '',
'link' => '',
'settings_links' => [],
'overridden' => FALSE,
'defaulted' => FALSE,
'description_separator' => TRUE,
'class' => [],
],
'initial preprocess' => static::class . ':preprocessDisplayTabSetting',
],
'views_ui_display_tab_bucket' => [
'render element' => 'element',
'initial preprocess' => static::class . ':preprocessDisplayTabBucket',
],
'views_ui_rearrange_filter_form' => [
'render element' => 'form',
'initial preprocess' => static::class . ':preprocessRearrangeFilterForm',
],
'views_ui_expose_filter_form' => [
'render element' => 'form',
],
// Legacy theme hook for displaying views info.
'views_ui_view_info' => [
'variables' => [
'view' => NULL,
'displays' => NULL,
],
],
// List views.
'views_ui_views_listing_table' => [
'variables' => [
'headers' => NULL,
'rows' => NULL,
'attributes' => [],
],
'initial preprocess' => static::class . ':preprocessViewsListingTable',
],
'views_ui_view_displays_list' => [
'variables' => [
'displays' => [],
],
],
// Group of filters.
'views_ui_build_group_filter_form' => [
'render element' => 'form',
'initial preprocess' => static::class . ':preprocessBuildGroupFilterForm',
],
// On behalf of a plugin.
'views_ui_style_plugin_table' => [
'render element' => 'form',
'initial preprocess' => static::class . ':preprocessStylePluginTable',
],
// When previewing a view.
'views_ui_view_preview_section' => [
'variables' => [
'view' => NULL,
'section' => NULL,
'content' => NULL,
'links' => '',
],
'initial preprocess' => static::class . ':preprocessViewPreviewSection',
],
// Generic container wrapper, to use instead of theme_container when an id
// is not desired.
'views_ui_container' => [
'variables' => [
'children' => NULL,
'attributes' => [],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.