From f0e43540466a5a14c58edcf7b301ac97c9cbf944 Mon Sep 17 00:00:00 2001 From: Benn Oshrin Date: Sun, 5 Mar 2023 07:16:32 -0500 Subject: [PATCH] Expose full_name via Name API (CFM-9) --- app/src/Model/Entity/Name.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/Model/Entity/Name.php b/app/src/Model/Entity/Name.php index e60b7f1bc..da742b5b6 100644 --- a/app/src/Model/Entity/Name.php +++ b/app/src/Model/Entity/Name.php @@ -41,6 +41,11 @@ class Name extends Entity { 'slug' => false, ]; + // Make full name available to the API v2 JSON response + protected $_virtual = [ + 'full_name' + ]; + /** * Generate a full (common) name. *