src/Service/LinkTo.php
public function getConfig()
    {
        // 1. 通过插件获取链接数据
        $links = $types = [];
        $this->event->trigger('linkToGetLinks', [&$links, &$types]);

        // 2. 将链接加到类型中
        foreach ($links as $link) {
            $types[$link['typeId']]['links'][] = $link;
        }

        // 3. 过滤空的类型
        foreach ($types as $key => $type) {
            $type += ['id' => $key] + $this->typeDefaults;
            if ($type['input'] == 'select' && !$type['links']) {
                unset($types[$key]);
            } else {
                $types[$key] = $type;
            }
        }

        // 4. 对分类排序
        $types = $this->orderBy($types);

        return [
            'types' => $types,
        ];
    }
public function getConfig()
    {
        // 1. 通过插件获取链接数据
        $links = $types = [];
        $this->event->trigger('linkToGetLinks', [&$links, &$types]);

        // 2. 将链接加到类型中
        foreach ($links as $link) {
            $types[$link['typeId']]['links'][] = $link;
        }

        // 3. 过滤空的类型
        foreach ($types as $key => $type) {
            $type += ['id' => $key] + $this->typeDefaults;
            if ($type['input'] == 'select' && !$type['links']) {
                unset($types[$key]);
            } else {
                $types[$key] = $type;
            }
        }

        // 4. 对分类排序
        $types = $this->orderBy($types);

        return [
            'types' => $types,
        ];
    }
获取类型,链接和修饰器配置

@return array