Log in
Model

Formatter

Magento\Developer\Model\Tools\Formatter

What it does

This class formats XML strings into well-structured, properly indented output for better readability.

Developers use it in development environments to clean up and standardize XML file formatting, such as configuration files, layouts, or API responses.

It preserves the content while applying consistent indentation and spacing rules.

Public Methods

  • format()