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

Breadcrumb

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

function FieldPluginBase::themeFunctions

Overrides PluginBase::themeFunctions

1 call to FieldPluginBase::themeFunctions()
FieldPluginBase::theme in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Renders row values using $this->themeFunctions() as #theme.

File

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

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

public function themeFunctions() {
    $themes = [];
    $hook = 'views_view_field';
    $display = $this->view->display_handler->display;
    if (!empty($display)) {
        $themes[] = $hook . '__' . $this->view->storage
            ->id() . '__' . $display['id'] . '__' . $this->options['id'];
        $themes[] = $hook . '__' . $this->view->storage
            ->id() . '__' . $display['id'];
        $themes[] = $hook . '__' . $display['id'] . '__' . $this->options['id'];
        $themes[] = $hook . '__' . $display['id'];
        if ($display['id'] != $display['display_plugin']) {
            $themes[] = $hook . '__' . $this->view->storage
                ->id() . '__' . $display['display_plugin'] . '__' . $this->options['id'];
            $themes[] = $hook . '__' . $this->view->storage
                ->id() . '__' . $display['display_plugin'];
            $themes[] = $hook . '__' . $display['display_plugin'] . '__' . $this->options['id'];
            $themes[] = $hook . '__' . $display['display_plugin'];
        }
    }
    $themes[] = $hook . '__' . $this->view->storage
        ->id() . '__' . $this->options['id'];
    $themes[] = $hook . '__' . $this->view->storage
        ->id();
    $themes[] = $hook . '__' . $this->options['id'];
    $themes[] = $hook;
    return $themes;
}

API Navigation

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