protected function FieldPluginBase::getRenderer in GraphQL 8.3
Get the renderer service.
Return value
\Drupal\Core\Render\RendererInterface
File
- src/
Plugin/ GraphQL/ Fields/ FieldPluginBase.php, line 88
Class
Namespace
Drupal\graphql\Plugin\GraphQL\FieldsCode
protected function getRenderer() {
if (!isset($this->renderer)) {
$this->renderer = \Drupal::service('renderer');
}
return $this->renderer;
}