You are here

public function UnsavedConfigurationInterface::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).

1 method overrides UnsavedConfigurationInterface::setCurrentUserId()
UnsavedIndexConfiguration::setCurrentUserId in src/UnsavedIndexConfiguration.php
Sets the current user ID.

File

src/UnsavedConfigurationInterface.php, line 17

Class

UnsavedConfigurationInterface
Represents a piece of configuration that was not permanently saved yet.

Namespace

Drupal\search_api

Code

public function setCurrentUserId($current_user_id);