function views_ui_view_preview_section_display_category_links

views_ui_view_preview_section_display_category_links(ViewExecutable $view, $type, $title)

Returns a link to editing a certain display setting.

File

core/modules/views_ui/views_ui.module, line 186
Provide structure for the administrative interface to Views.

Code

function views_ui_view_preview_section_display_category_links(ViewExecutable $view, $type, $title) {
  $display = $view->display_handler->display;
  $links = array(
    $type . '-edit' => array(
      'title' => t('Edit @section', array('@section' => $title)),
      'url' => Url::fromRoute('views_ui.form_display', ['js' => 'nojs', 'view' => $view->storage->id(), 'display_id' => $display['id'], 'type' => $type]),
      'attributes' => array('class' => array('views-ajax-link')),
    ),
  );

  return $links;
}

© 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_ui!views_ui.module/function/views_ui_view_preview_section_display_category_links/8.1.x