You are here

public function UnsavedIndexConfiguration::setCurrentUserId in Search API 8

Sets the current user ID.

Parameters

int|string $current_user_id: The UID of the currently logged-in user, or the session ID (for anonymous users).

Overrides UnsavedConfigurationInterface::setCurrentUserId

File

src/UnsavedIndexConfiguration.php, line 105

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function setCurrentUserId($current_user_id) {
  $this->currentUserId = $current_user_id;
}