You are here

public function PremiumContent::setCurrentUser in Node Option Premium 8

Sets the current user.

Parameters

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

Return value

$this

File

src/Plugin/search_api/processor/PremiumContent.php, line 103

Class

PremiumContent
Adds premium information to the indexes.

Namespace

Drupal\nopremium\Plugin\search_api\processor

Code

public function setCurrentUser(AccountProxyInterface $current_user) {
  $this->currentUser = $current_user;
  return $this;
}