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

8.0.x
Jennifer Hodgdon 2012-11-10 07:12:06 -08:00
parent 40d7bc4df3
commit 59549a89e4
2 changed files with 13 additions and 11 deletions

View File

@ -10,7 +10,7 @@ namespace Drupal\user\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Tests user_save() behavior.
* Tests \Drupal\user\UserStorageController::save() behavior.
*/
class UserSaveTest extends WebTestBase {

View File

@ -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.