public function FieldPluginBase::label

Get this field's label.

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

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 187
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

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