function views_ui_view_preview_section_display_category_links
Same name in other branches
- 9 core/modules/views_ui/views_ui.module \views_ui_view_preview_section_display_category_links()
- 10 core/modules/views_ui/views_ui.module \views_ui_view_preview_section_display_category_links()
- 11.x core/modules/views_ui/views_ui.module \views_ui_view_preview_section_display_category_links()
Returns a link to editing a certain display setting.
1 call to views_ui_view_preview_section_display_category_links()
- template_preprocess_views_ui_view_preview_section in core/
modules/ views_ui/ views_ui.theme.inc - Prepares variables for views UI view preview section templates.
File
-
core/
modules/ views_ui/ views_ui.module, line 207
Code
function views_ui_view_preview_section_display_category_links(ViewExecutable $view, $type, $title) {
$display = $view->display_handler->display;
$links = [
$type . '-edit' => [
'title' => t('Edit @section', [
'@section' => $title,
]),
'url' => Url::fromRoute('views_ui.form_display', [
'js' => 'nojs',
'view' => $view->storage
->id(),
'display_id' => $display['id'],
'type' => $type,
]),
'attributes' => [
'class' => [
'views-ajax-link',
],
],
],
];
return $links;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.