Log in
Interface

CustomerNameGenerationInterface

Magento\Customer\Api\CustomerNameGenerationInterface

What it does

This interface defines a contract for generating a customer's full name from their customer data object.

Developers use this when they need to display a complete customer name by concatenating name parts (first name, middle name, last name, prefix, suffix) according to configured formatting rules.

It's particularly useful in templates, emails, or any display context where a formatted customer name is needed.

Public Methods

  • getCustomerName()