MediaGallery Module
Asset
This class represents a media asset in Magento's Media Gallery system. Developers use it to store and retrieve information about uploaded media files...
AssetKeywords
This class serves as a data transfer object that associates a media gallery asset with its keywords for bulk operations. Developers use this when they...
Asset\Command\DeleteByDirectoryPath
This class deletes media gallery assets from the database based on a directory path. Developers use it when they need to remove all media assets store...
Asset\Command\DeleteByPath
This class handles deletion of media gallery assets from the database by their file path. Developers would use this when they need to remove media gal...
Asset\Command\GetById
This class retrieves a media gallery asset from the database by its ID. Developers use it to fetch complete asset information including path, title, d...
Asset\Command\GetByPath
This model retrieves a media gallery asset from the database using its file path. Developers would use this class when they need to fetch complete inf...
Asset\Command\Save
This class saves media asset information to the Magento database. Developers would use it to persist details about uploaded media files like images, i...
Directory\Command\CreateByPaths
This class creates directories in Magento's media storage based on provided file paths. Developers use this when they need to programmatically create...
Directory\Command\DeleteByPaths
This class handles the deletion of multiple directories from Magento's media gallery storage. Developers would use this when programmatically removing...
Directory\Config\Converter
This converter class transforms XML configuration files into PHP arrays for media gallery directory settings. Developers use this when defining which...
Directory\Config\SchemaLocator
This class locates the XSD schema file used to validate media gallery directory configuration files. Developers would use this when working with media...
Directory\ExcludedPatternsConfig
This class provides access to configured directory patterns that should be excluded from the Media Gallery. Developers use this to retrieve a list of...
Directory\IsExcluded
This class determines whether a directory path is excluded from media gallery operations in Magento 2. Developers use this to check if a specific path...
Keyword
This class represents a keyword tag that can be associated with media gallery assets in Magento. Developers use it to create, retrieve, and manage key...
Keyword\Command\GetAssetKeywords
This class retrieves all keywords associated with a specific media gallery asset by its ID. Developers would use this when they need to display or pro...
Keyword\Command\SaveAssetKeywords
This class saves keyword associations for media gallery assets to the database. Developers use it to tag media assets with keywords for better organiz...
ResourceModel\DeleteAssetsByPaths
This class handles the deletion of media gallery assets from the database based on their file paths. Developers use this when they need to remove medi...
ResourceModel\GetAssetsByIds
This class retrieves multiple media gallery assets from the database by their IDs. Developers use this when they need to fetch detailed information ab...
ResourceModel\GetAssetsByPaths
This class retrieves media gallery asset records from the database based on an array of file paths. Developers use it when they need to fetch complete...
ResourceModel\GetAssetsBySearchCriteria
This resource model retrieves media gallery assets from the database based on search criteria filters. Developers use this class when they need to fet...
ResourceModel\Keyword\GetAssetsKeywords
This class retrieves keywords associated with media gallery assets in Magento 2. Developers use it to fetch all keywords tagged to one or more media a...
ResourceModel\Keyword\SaveAssetLinks
This class manages the relationship between media gallery assets and their associated keywords by saving, updating, and deleting links in the database...
ResourceModel\Keyword\SaveAssetsKeywords
This class saves keyword associations for media gallery assets in Magento 2. Developers use it when they need to tag media assets with keywords for ca...
ResourceModel\SaveAssets
This class handles saving media gallery assets (images, videos, etc.) to the database. Developers use it when they need to persist media asset metadat...
SearchAssets
This class retrieves media gallery assets based on search criteria. Developers use it to fetch filtered lists of media assets (images, videos) from th...