How is \Magento\Framework\DataObject\AttributeLoaderInterface::loadAllAttributes() implemented?
How does \Magento\Eav\Model\Entity\AttributeLoader::loadAllAttributes() work?
The $hydrator is an instance of the \Magento\Framework\Model\Entity\EntityHydrator class.
Details: How does \Magento\Framework\EntityManager\MetadataPool::getMetadata() work?
The $metadata is an instance of the \Magento\Framework\Model\Entity\EntityMetadata class.


