Log in
Model

EntryResolver

Magento\Catalog\Model\Product\Gallery\EntryResolver

What it does

This class serves as a bidirectional resolver between media gallery entry IDs and file paths for product images.

Developers use it when they need to find the file path of a product image by its database ID, or conversely, find the entry ID when they only have the file path.

It's particularly useful when working with product image operations where you need to translate between these two identifiers.

Public Methods

  • getEntryFilePathById()
  • getEntryIdByFilePath()