How is \Magento\Catalog\Model\Product::getMediaAttributes() implemented and used?

Implementation

Context: How does \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content::getMediaAttributes() work?

Details: How does \Magento\Catalog\Model\Product::getAttributes() work?

Usage

1. \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content::getMediaAttributes()


Details: How does \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content::getMediaAttributes() work?

2. \Magento\Catalog\Model\ProductRepository::processMediaGallery()

3. \Magento\ConfigurableProduct\Block\Adminhtml\Product\Steps\Bulk::getMediaAttributes()

4. \Magento\ProductVideo\Block\Adminhtml\Product\Edit\NewVideo::addMediaRoleAttributes()