Need to get distinct list of product manufacturers using product collection.
Manufacturer is an EAV attribute. For example I have this data:
As a result preferable to recieve array list of manufacturers.
I'm trying to do something like this
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productManufacturer = $objectManager->create('\Magento\Catalog\Model\Product');
$manufacturerCollection = $productManufacturer->getCollection();
$manufacturerCollection->addAttributeToSelect('manufacturer');
$manufacturers = $manufacturerCollection->getSelect()->group('manufacturer');
Please, any advices how to implement this?