You are here

public function RenderedItem::getAccountSwitcher in Search API 8

Retrieves the account switcher service.

Return value

\Drupal\Core\Session\AccountSwitcherInterface The account switcher service.

File

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

Class

RenderedItem
Adds an additional field containing the rendered item.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function getAccountSwitcher() {
  return $this->accountSwitcher ?: \Drupal::service('account_switcher');
}