You are here

public function HandlerBase::adminLabel in Drupal 9

Same name and namespace in other branches
  1. 8 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

9 calls to HandlerBase::adminLabel()
AreaPluginBase::adminSummary in core/modules/views/src/Plugin/views/area/AreaPluginBase.php
Provide text for the administrative summary.
Combine::validate in core/modules/views/src/Plugin/views/filter/Combine.php
Validate that the plugin is correct and can be saved.
FieldPluginBase::adminLabel in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Return a string representing this handler's name in the UI.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/sort/GroupByNumeric.php
Return a string representing this handler's name in the UI.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Return a string representing this handler's name in the UI.

... See full list

4 methods override HandlerBase::adminLabel()
FieldPluginBase::adminLabel in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Return a string representing this handler's name in the UI.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/sort/GroupByNumeric.php
Return a string representing this handler's name in the UI.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Return a string representing this handler's name in the UI.
GroupByNumeric::adminLabel in core/modules/views/src/Plugin/views/filter/GroupByNumeric.php
Return a string representing this handler's name in the UI.

File

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

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,
  ]);
}