/** * {@inheritdoc} */ public function getGroup($groupId = null) { if (null === $groupId) { $group = $this->groupRepository->get($this->getStore()->getGroupId()); } elseif ($groupId instanceof \Magento\Store\Api\Data\GroupInterface) { $group = $groupId; } else { $group = $this->groupRepository->get($groupId); } return $group; }
/** * Retrieve group model * * @return Group|bool */ public function getGroup() { if (null === $this->getGroupId()) { return false; } return $this->groupRepository->get($this->getGroupId()); }
/** * {@inheritdoc} */ public function getDefaultStoreId($scopeCode) { $website = $scopeCode ? $this->websiteRepository->get($scopeCode) : $this->websiteRepository->getDefault(); return $this->groupRepository->get($website->getDefaultGroupId())->getDefaultStoreId(); }
/** * {@inheritdoc} */ public function getDefaultStoreId($scopeCode) { return $this->groupRepository->get($scopeCode)->getDefaultStoreId(); }