public function AccountProxy::setInitialAccountId in Restrict Login or Role Access by IP Address 8.4
Sets the id of the initial account.
Never use this method, its sole purpose is to work around weird effects during mid-request container rebuilds.
Parameters
int $account_id: The id of the initial account.
Overrides AccountProxyInterface::setInitialAccountId
File
- src/
Session/ AccountProxy.php, line 160 - Contains \Drupal\restrict_by_ip\Session\AccountProxy.
Class
- AccountProxy
- When the current user is loaded, remove any roles that are restricted based on IP whitelists. Proxy all other method calls to the original current_user service.
Namespace
Drupal\restrict_by_ip\SessionCode
public function setInitialAccountId($account_id) {
$this->original
->setInitialAccountId($account_id);
}