You are here

public function RenderedItem::setRenderer in Search API 8

Sets the renderer.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The new renderer.

Return value

$this

File

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

Class

RenderedItem
Adds an additional field containing the rendered item.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function setRenderer(RendererInterface $renderer) {
  $this->renderer = $renderer;
  return $this;
}