标签: drupal-8
我从field_full_name创建了一个字段Configuration->People->Account Settings->Manage Fields。我现在要更新其值。我尝试使用下面的代码,但这不会更新其值。
field_full_name
Configuration->People->Account Settings->Manage Fields
$user = \Drupal\user\Entity\User::load($account->id()); $user->set('field_full_name', 'My Name'); $user->save();
用户已正确加载,我只想保存该值。