Magento2: attributes of a product from a custom attribute group

To get all the attributes from a custom group (named “customattributes”), I created a helper that looks like this: class Product extends \Magento\Framework\App\Helper\AbstractHelper { const CUSTOMATTRIBUTE_GROUP_NAME = ‘customattributes’; public $groupCollectionFactory; public function __construct( \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $groupCollectionFactory ){ $this->groupCollectionFactory = $groupCollectionFactory; } […]