You are here

public function FieldPluginBase::label in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 226
Contains \Drupal\views\Plugin\views\field\FieldPluginBase.

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