/** * {@inheritdoc} */ public function get($groupId) { /** @var \Magento\Catalog\Model\Product\Attribute\Group $group */ $group = $this->groupFactory->create(); $this->groupResource->load($group, $groupId); if (!$group->getId()) { throw new NoSuchEntityException(__('Group with id "%1" does not exist.', $groupId)); } return $group; }