elgg /mentions
此包已废弃,不再维护。未建议替代包。
dev-master
2019-02-20 10:41 UTC
Requires
- composer/installers: >=1.0.8
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is auto-updated.
Last update: 2023-06-05 07:23:13 UTC
README
- 将@username替换为用户资料的链接
- 向提及的用户发送通知
备注
支持的内容类型
为了在发送通知时添加对自定义对象或注释类型的支持,请将相应的语言键对添加到您的语言文件中
mentions:notification_types:object:<object_type>
mentions:notification_types:annotation:<annotation_name>
扫描提及的对象字段
使用'get_fields','mentions'
钩子可以扩展扫描字段的范围,超出对象title
和description
。钩子接收entity
并期望返回一个字段数组。
将提及替换为锚点
要添加一个应扫描@提及并替换为锚点的视图,请使用'get_views', 'mentions'
钩子。