You are here

public function FieldPluginBase::themeFunctions in Views (for Drupal 7) 8.3

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

Overrides PluginBase::themeFunctions

1 call to FieldPluginBase::themeFunctions()
FieldPluginBase::theme in 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

lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 1593
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->name . '__' . $display['id'] . '__' . $this->options['id'];
    $themes[] = $hook . '__' . $this->view->storage->name . '__' . $display['id'];
    $themes[] = $hook . '__' . $display['id'] . '__' . $this->options['id'];
    $themes[] = $hook . '__' . $display['id'];
    if ($display['id'] != $display['display_plugin']) {
      $themes[] = $hook . '__' . $this->view->storage->name . '__' . $display['display_plugin'] . '__' . $this->options['id'];
      $themes[] = $hook . '__' . $this->view->storage->name . '__' . $display['display_plugin'];
      $themes[] = $hook . '__' . $display['display_plugin'] . '__' . $this->options['id'];
      $themes[] = $hook . '__' . $display['display_plugin'];
    }
  }
  $themes[] = $hook . '__' . $this->view->storage->name . '__' . $this->options['id'];
  $themes[] = $hook . '__' . $this->view->storage->name;
  $themes[] = $hook . '__' . $this->options['id'];
  $themes[] = $hook;
  return $themes;
}