function HandlerBase::adminLabel

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

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.