You are here

public function FieldPluginBase::label in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()

Gets this field's label.

Overrides FieldHandlerInterface::label

2 calls to FieldPluginBase::label()
FieldPluginBase::adminSummary in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Provide extra data to the administration form.
FieldPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Default options form that provides the label widget that all fields should have.

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 237

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

public function label() {
  if (!isset($this->options['label'])) {
    return '';
  }
  return $this->options['label'];
}