function HandlerBase::adminLabel

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::adminLabel()
  2. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::adminLabel()
  3. 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::adminLabel()

Return a string representing this handler's name in the UI.

Overrides ViewsHandlerInterface::adminLabel

4 calls to HandlerBase::adminLabel()
AreaPluginBase::adminSummary in core/modules/views/src/Plugin/views/area/AreaPluginBase.php
Provide text for the administrative summary.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Return a string representing this handler's name in the UI.
NumericArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/NumericArgument.php
Returns a context definition for this argument.
StringArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/StringArgument.php
Returns a context definition for this argument.
1 method overrides HandlerBase::adminLabel()
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Return a string representing this handler's name in the UI.

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 156

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

public function adminLabel($short = FALSE) {
  if (!empty($this->options['admin_label'])) {
    return $this->options['admin_label'];
  }
  $title = $short && isset($this->definition['title short']) ? $this->definition['title short'] : $this->definition['title'];
  return $this->t('@group: @title', [
    '@group' => $this->definition['group'],
    '@title' => $title,
  ]);
}

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