function HandlerBase::adminLabel

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::adminLabel()
  2. 8.9.x 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()

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 162

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.