public function EntityRow::summaryTitle

Overrides Drupal\views\Plugin\views\PluginBase::summaryTitle().

Overrides PluginBase::summaryTitle

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php, line 134
Contains \Drupal\views\Plugin\views\row\EntityRow.

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\views\Plugin\views\row

Code

public function summaryTitle() {
  $options = $this
    ->buildViewModeOptions();
  if (isset($options[$this->options['view_mode']])) {
    return check_plain($options[$this->options['view_mode']]);
  }
  else {
    return t('No view mode selected');
  }
}