Log in
Model

EntryResolver

Magento\Catalog\Model\Product\Gallery\EntryResolver

What it does

This class resolves mappings between product media gallery entry IDs and their file paths.

Developers use it to look up a gallery image's file path when they have its ID, or to find an entry ID when they have the file path, which is useful when working with product images programmatically.

Public Methods

  • getEntryFilePathById()
  • getEntryIdByFilePath()