protected function PluginBase::getRenderer in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::getRenderer()
- 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::getRenderer()
Returns the render API renderer.
Return value
\Drupal\Core\Render\RendererInterface
1 call to PluginBase::getRenderer()
- StylePluginBase::renderFields in core/
modules/ views/ src/ Plugin/ views/ style/ StylePluginBase.php - Renders all of the fields for a given style and store them on the object.
File
- core/
modules/ views/ src/ Plugin/ views/ PluginBase.php, line 656
Class
Namespace
Drupal\views\Plugin\viewsCode
protected function getRenderer() {
if (!isset($this->renderer)) {
$this->renderer = \Drupal::service('renderer');
}
return $this->renderer;
}