From 5be7b6b284fe8225f67fbecbef4f48a30be4fb3c Mon Sep 17 00:00:00 2001 From: Derek Laventure Date: Thu, 11 Jan 2024 12:16:17 -0400 Subject: [PATCH 1/2] Create NameHandler.php --- .../Driver/Fields/Drupal8/NameHandler.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Drupal/Driver/Fields/Drupal8/NameHandler.php diff --git a/src/Drupal/Driver/Fields/Drupal8/NameHandler.php b/src/Drupal/Driver/Fields/Drupal8/NameHandler.php new file mode 100644 index 0000000..9b4d3c1 --- /dev/null +++ b/src/Drupal/Driver/Fields/Drupal8/NameHandler.php @@ -0,0 +1,23 @@ + $values[0], + 'given' => $values[1], + ]; + } +} From 61bdb7402c9e3e6ad4aac5d058434ce9670afea4 Mon Sep 17 00:00:00 2001 From: Derek Laventure Date: Thu, 11 Jan 2024 12:31:09 -0400 Subject: [PATCH 2/2] Remove debug print_r from NameHandler.php --- src/Drupal/Driver/Fields/Drupal8/NameHandler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Drupal/Driver/Fields/Drupal8/NameHandler.php b/src/Drupal/Driver/Fields/Drupal8/NameHandler.php index 9b4d3c1..01b0b82 100644 --- a/src/Drupal/Driver/Fields/Drupal8/NameHandler.php +++ b/src/Drupal/Driver/Fields/Drupal8/NameHandler.php @@ -14,7 +14,6 @@ class NameHandler implements FieldHandlerInterface { */ public function expand($values) { $values = preg_split("/, /", $values); - print_r($values); return [ 'family' => $values[0], 'given' => $values[1],