DeleteValidator
Magento\Catalog\Model\Product\Gallery\DeleteValidator
What it does
This validator checks whether a product image can be safely deleted from a specific store view.
It prevents deletion of images that are assigned to product image roles (base, small, thumbnail, swatch) in other store views, ensuring multi-store catalogs maintain their configured images.
Developers use this during product image deletion operations to avoid breaking image assignments across different stores.
Public Methods
- validate()