make capable with Drupal 9+

This commit is contained in:
Fill committed 2023-04-05 23:03:19 +03:00
1 parent 8c6e2723ff
commit 6bbb40d61d
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ class ReservationAddForm extends FormBase {
//Specify the author. //Specify the author.
$entry->uid = \Drupal::currentUser()->id(); $entry->uid = \Drupal::currentUser()->id();
// Perform some kind of data manipulation // Perform some kind of data manipulation
$entry->title->value = $pname; $entry->title->value = $pname;
$entry->field_person_name->value = $pname; $entry->field_person_name->value = $pname;
$entry->field_person_phone->value = $phone; $entry->field_person_phone->value = $phone;