You are here

protected function RenderedItem::getThemeInitializer in Search API 8

Retrieves the theme initialization service.

Return value

\Drupal\Core\Theme\ThemeInitializationInterface The theme initialization service.

File

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

Class

RenderedItem
Adds an additional field containing the rendered item.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

protected function getThemeInitializer() {
  return $this->themeInitialization ?: \Drupal::service('theme.initialization');
}