Is there a way to render first name, last name, credentials separately from twig templates?

Any help will be much appreciated

Thanks

Comments

hmohan created an issue. See original summary.

pcate’s picture

I'd like to know this as well. If it isn't possible, I'd like to suggest it as a feature request.

bluegeek9’s picture

Priority: Major » Minor
Status: Active » Fixed

The item variable has each name component.

{#
/**
 * @file
 * Default theme implementation for name_item.
 *
 * Available variables:
 *  - item: Keyed array of name components.
 *  - format: The machine name of the format.
 *  - settings: Additional settings to control the parser.
 *  - formatted_name: Formatted name based on the item, format and settings.
 *
 * @ingroup themeable
 */
#}
{{ formatted_name }}

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.