Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldPluginBase.php

function 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 263

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal