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 1824  
Class
- FieldPluginBase
 - Base class for views fields.
 
Namespace
Drupal\views\Plugin\views\fieldCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.