Important

We are updating the images for OroCommerce version 6.1 to align with the latest changes in the back-office design. During this transition, some images may still show older versions. Thank you for your patience as we work to update all visuals to reflect these changes.

#[TitleTemplate] 

This attribute is used to configure the template that is used to render the page title when the controller tagged with this attribute is accessed:

// ...
use Oro\Bundle\NavigationBundle\Attribute\TitleTemplate;

#[TitleTemplate("The page title")]
public function demoAction()
{
    // ...
}

You can use arbitrary placeholders here which you then have to replace later on in your template using the oro_title_set() Twig function:

{% oro_title_set({params : {"%username%": fullname }}) %}