function ViewsUiHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/views_ui/src/Hook/ViewsUiHooks.php, line 75

Class

ViewsUiHooks
Hook implementations for views_ui.

Namespace

Drupal\views_ui\Hook

Code

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' => [],
      ],
      'file' => 'views_ui.theme.inc',
    ],
    'views_ui_display_tab_bucket' => [
      'render element' => 'element',
      'file' => 'views_ui.theme.inc',
    ],
    'views_ui_rearrange_filter_form' => [
      'render element' => 'form',
      'file' => 'views_ui.theme.inc',
    ],
    'views_ui_expose_filter_form' => [
      'render element' => 'form',
      'file' => 'views_ui.theme.inc',
    ],
    // Legacy theme hook for displaying views info.
'views_ui_view_info' => [
      'variables' => [
        'view' => NULL,
        'displays' => NULL,
      ],
      'file' => 'views_ui.theme.inc',
    ],
    // List views.
'views_ui_views_listing_table' => [
      'variables' => [
        'headers' => NULL,
        'rows' => NULL,
        'attributes' => [],
      ],
      'file' => 'views_ui.theme.inc',
    ],
    'views_ui_view_displays_list' => [
      'variables' => [
        'displays' => [],
      ],
    ],
    // Group of filters.
'views_ui_build_group_filter_form' => [
      'render element' => 'form',
      'file' => 'views_ui.theme.inc',
    ],
    // On behalf of a plugin
'views_ui_style_plugin_table' => [
      'render element' => 'form',
      'file' => 'views_ui.theme.inc',
    ],
    // When previewing a view.
'views_ui_view_preview_section' => [
      'variables' => [
        'view' => NULL,
        'section' => NULL,
        'content' => NULL,
        'links' => '',
      ],
      'file' => 'views_ui.theme.inc',
    ],
    // Generic container wrapper, to use instead of theme_container when an id
    // is not desired.
'views_ui_container' => [
      'variables' => [
        'children' => NULL,
        'attributes' => [],
      ],
      'file' => 'views_ui.theme.inc',
    ],
  ];
}

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