public function AccountProxyInterface::setInitialAccountId
public AccountProxyInterface::setInitialAccountId($account_id)
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.
File
- core/lib/Drupal/Core/Session/AccountProxyInterface.php, line 44
Class
- AccountProxyInterface
- Defines an interface for a service which has the current account stored.
Namespace
Drupal\Core\SessionCode
public function setInitialAccountId($account_id);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!AccountProxyInterface.php/function/AccountProxyInterface::setInitialAccountId/8.1.x