Vsch\TranslationManager\Manager::getGroupAugmentedList PHP Method

getGroupAugmentedList() public method

    public function getGroupAugmentedList()
    {
        if ($this->augmentedGroupList === null) {
            // compute augmented list from vnd:{vendor}.{package}::group.key
            // remove the vnd:{vendor}. and add to augmented, map it to original name
            $groupList = $this->getGroupList();
            $this->augmentedGroupList = [];
            foreach ($groupList as $group) {
                if (starts_with($group, ["vnd:", "wbn:"])) {
                    // we need this one
                    $parts = explode('.', $group, 2);
                    if (count($parts) === 2) {
                        // if it is not included in the vendor resources
                        if (!array_key_exists($parts[1], $groupList)) {
                            $this->augmentedGroupList[$parts[1]] = $group;
                        }
                    }
                }
            }
        }
        return $this->augmentedGroupList;
    }