Log in
Model

UiComponentTypeResolver

Magento\Ui\Model\UiComponentTypeResolver

What it does

This class resolves the correct Content-Type header value for UI Component rendering based on the component's accept type.

Developers use this when rendering UI components that need to return different content types (like JSON for AJAX requests or HTML for page loads).

The type mappings can be extended through dependency injection configuration.

Public Methods

  • resolve()