function FieldPluginBase::themeFunctions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::themeFunctions()
- 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::themeFunctions()
- 11.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\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 1806
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.