You are here

protected function FieldPluginBase::getRenderer in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::getRenderer()

Returns the render API renderer.

Return value

\Drupal\Core\Render\RendererInterface

Overrides PluginBase::getRenderer

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

File

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

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

protected function getRenderer() {
  if (!isset($this->renderer)) {
    $this->renderer = \Drupal::service('renderer');
  }
  return $this->renderer;
}