You are here

public function PluginBase::pluginTitle in Drupal 10

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

File

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

Class

PluginBase

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