You are here

public function PluginBase::pluginTitle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::pluginTitle()

Return the human readable name of the display.

This appears on the ui beside each plugin and beside the settings link.

Overrides ViewsPluginInterface::pluginTitle

File

core/modules/views/src/Plugin/views/PluginBase.php, line 320

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function pluginTitle() {

  // Short_title is optional so its defaults to an empty string.
  if (!empty($this->definition['short_title'])) {
    return $this->definition['short_title'];
  }
  return $this->definition['title'];
}