public function PathPluginBase::optionsSummary

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().

Overrides DisplayPluginBase::optionsSummary

2 calls to PathPluginBase::optionsSummary()
Feed::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().
Page::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().
2 methods override PathPluginBase::optionsSummary()
Feed::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().
Page::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php, line 211
Contains Drupal\views\Plugin\views\display\PathPluginBase.

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages, feeds.

Namespace

Drupal\views\Plugin\views\display

Code

public function optionsSummary(&$categories, &$options) {
  parent::optionsSummary($categories, $options);
  $categories['page'] = array(
    'title' => t('Page settings'),
    'column' => 'second',
    'build' => array(
      '#weight' => -10,
    ),
  );
  $path = strip_tags($this
    ->getOption('path'));
  if (empty($path)) {
    $path = t('No path is set');
  }
  else {
    $path = '/' . $path;
  }
  $options['path'] = array(
    'category' => 'page',
    'title' => t('Path'),
    'value' => views_ui_truncate($path, 24),
  );
}