You are here

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

FieldPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Fields

Code

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