You are here

public function RenderedItem::getRenderer in Search API 8

Retrieves the renderer.

Return value

\Drupal\Core\Render\RendererInterface The renderer.

File

src/Plugin/search_api/processor/RenderedItem.php, line 122

Class

RenderedItem
Adds an additional field containing the rendered item.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function getRenderer() {
  return $this->renderer ?: \Drupal::service('renderer');
}