Log in
Helper

View

Magento\Catalog\Helper\Product\View

What it does

This helper class prepares and renders product detail pages in Magento 2.

Developers use it to initialize product layouts, apply custom designs, set page metadata (title, keywords, description), and handle product view configuration.

It's typically called by product view controllers to set up everything needed to display a product page correctly.

Public Methods

  • initProductLayout()
  • prepareAndRender()