function ArgumentPluginBase::getTitle

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getTitle()
  2. 8.9.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getTitle()
  3. 11.x core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getTitle()

Determines the title to use for the view.

This may be set by a validator so we don't necessarily call through to title().

1 call to ArgumentPluginBase::getTitle()
ArgumentPluginBase::exceptionTitle in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 1043

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

public function getTitle() {
    if (isset($this->validated_title)) {
        return $this->validated_title;
    }
    else {
        return $this->title();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.