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. 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()
  3. 10 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()

Overrides FieldHandlerInterface::label

3 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 option form that provides label widget that all fields should have.
FieldPluginBase::getEntity in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Gets the entity matching the current row and relationship.

File

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

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.