Skip to content

Commit

Permalink
Expose full_name via Name API (CFM-9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Mar 5, 2023
1 parent fe20819 commit f0e4354
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/Model/Entity/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit f0e4354

Please sign in to comment.