function FieldPluginBase::label

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()
  2. 10 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()
  3. 11.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::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 236

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'];
}

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