Issue #1822708 by penyaskito, asaal: Remove references to removed function user_save() in docs
parent
40d7bc4df3
commit
59549a89e4
|
@ -10,7 +10,7 @@ namespace Drupal\user\Tests;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests user_save() behavior.
|
* Tests \Drupal\user\UserStorageController::save() behavior.
|
||||||
*/
|
*/
|
||||||
class UserSaveTest extends WebTestBase {
|
class UserSaveTest extends WebTestBase {
|
||||||
|
|
||||||
|
|
|
@ -257,11 +257,12 @@ function hook_user_presave($account) {
|
||||||
*
|
*
|
||||||
* Note that when this hook is invoked, the changes have not yet been written to
|
* Note that when this hook is invoked, the changes have not yet been written to
|
||||||
* the database, because a database transaction is still in progress. The
|
* the database, because a database transaction is still in progress. The
|
||||||
* transaction is not finalized until the save operation is entirely completed
|
* transaction is not finalized until the insert operation is entirely completed
|
||||||
* and user_save() goes out of scope. You should not rely on data in the
|
* and \Drupal\user\DataStorageController::save() goes out of scope. You should
|
||||||
* database at this time as it is not updated yet. You should also note that any
|
* not rely on data in the database at this time as it is not updated yet. You
|
||||||
* write/update database queries executed from this hook are also not committed
|
* should also note that any write/update database queries executed from this hook
|
||||||
* immediately. Check user_save() and db_transaction() for more info.
|
* are also not committed immediately. Check \Drupal\user\DataStorageController::save()
|
||||||
|
* and db_transaction() for more info.
|
||||||
*
|
*
|
||||||
* @param $account
|
* @param $account
|
||||||
* The user account object.
|
* The user account object.
|
||||||
|
@ -283,11 +284,12 @@ function hook_user_insert($account) {
|
||||||
*
|
*
|
||||||
* Note that when this hook is invoked, the changes have not yet been written to
|
* Note that when this hook is invoked, the changes have not yet been written to
|
||||||
* the database, because a database transaction is still in progress. The
|
* the database, because a database transaction is still in progress. The
|
||||||
* transaction is not finalized until the save operation is entirely completed
|
* transaction is not finalized until the update operation is entirely completed
|
||||||
* and user_save() goes out of scope. You should not rely on data in the
|
* and \Drupal\user\DataStorageController::save() goes out of scope. You should not
|
||||||
* database at this time as it is not updated yet. You should also note that any
|
* rely on data in the database at this time as it is not updated yet. You should
|
||||||
* write/update database queries executed from this hook are also not committed
|
* also note that any write/update database queries executed from this hook are
|
||||||
* immediately. Check user_save() and db_transaction() for more info.
|
* also not committed immediately. Check \Drupal\user\DataStorageController::save()
|
||||||
|
* and db_transaction() for more info.
|
||||||
*
|
*
|
||||||
* @param $account
|
* @param $account
|
||||||
* The user account object.
|
* The user account object.
|
||||||
|
|
Loading…
Reference in New Issue