public function FieldPluginBase::themeFunctions

Provide a full list of possible theme templates used by this style.

Overrides PluginBase::themeFunctions

1 call to FieldPluginBase::themeFunctions()
FieldPluginBase::theme in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
Call out to the theme() function, which probably just calls render() but allows sites to override output fairly easily.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 1598
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 themeFunctions() {
  $themes = array();
  $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;
}