Commit 59549a89 authored by jhodgdon's avatar jhodgdon
Browse files

Issue #1822708 by penyaskito, asaal: Remove references to removed function user_save() in docs

parent 40d7bc4d
......@@ -10,7 +10,7 @@
use Drupal\simpletest\WebTestBase;
/**
* Tests user_save() behavior.
* Tests \Drupal\user\UserStorageController::save() behavior.
*/
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
* the database, because a database transaction is still in progress. The
* transaction is not finalized until the save operation is entirely completed
* and user_save() goes out of scope. You should not rely on data in the
* database at this time as it is not updated yet. You should also note that any
* write/update database queries executed from this hook are also not committed
* immediately. Check user_save() and db_transaction() for more info.
* transaction is not finalized until the insert operation is entirely completed
* and \Drupal\user\DataStorageController::save() goes out of scope. You should
* not rely on data in the database at this time as it is not updated yet. You
* should also note that any write/update database queries executed from this hook
* are also not committed immediately. Check \Drupal\user\DataStorageController::save()
* and db_transaction() for more info.
*
* @param $account
* 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
* the database, because a database transaction is still in progress. The
* transaction is not finalized until the save operation is entirely completed
* and user_save() goes out of scope. You should not rely on data in the
* database at this time as it is not updated yet. You should also note that any
* write/update database queries executed from this hook are also not committed
* immediately. Check user_save() and db_transaction() for more info.
* transaction is not finalized until the update operation is entirely completed
* and \Drupal\user\DataStorageController::save() goes out of scope. You should not
* rely on data in the database at this time as it is not updated yet. You should
* also note that any write/update database queries executed from this hook are
* also not committed immediately. Check \Drupal\user\DataStorageController::save()
* and db_transaction() for more info.
*
* @param $account
* The user account object.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment