You are here

public function PluginBase::pluginTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 314
Contains \Drupal\views\Plugin\views\PluginBase.

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'];
}