public function RenderedItem::setAccountSwitcher in Search API 8
Sets the account switcher service.
Parameters
\Drupal\Core\Session\AccountSwitcherInterface $current_user: The account switcher service.
Return value
$this
File
- src/
Plugin/ search_api/ processor/ RenderedItem.php, line 111
Class
- RenderedItem
- Adds an additional field containing the rendered item.
Namespace
Drupal\search_api\Plugin\search_api\processorCode
public function setAccountSwitcher(AccountSwitcherInterface $current_user) {
$this->accountSwitcher = $current_user;
return $this;
}