You are here

protected function RenderedItem::getThemeManager in Search API 8

Retrieves the theme manager.

Return value

\Drupal\Core\Theme\ThemeManagerInterface The theme manager.

File

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

Class

RenderedItem
Adds an additional field containing the rendered item.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

protected function getThemeManager() {
  return $this->themeManager ?: \Drupal::theme();
}