Log in
Model

Image

Magento\Catalog\Model\Category\Image

What it does

This service class resolves and returns the full URL for category images in Magento 2.

Developers use it to get the complete media URL for a category's image attribute, handling different path formats and ensuring the URL points to the correct store's media directory.

It's particularly useful when displaying category images in templates or APIs.

Public Methods

  • getUrl()