Skip to content

Commit 043ab77

Browse files
committed
XWIKI-19383: Display a title on createlink
* Added a comment to DefaultDocumentURITileGenerator
1 parent 84b03f1 commit 043ab77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xwiki-rendering-api/src/main/java/org/xwiki/rendering/internal/renderer/DefaultDocumentURITitleGenerator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public class DefaultDocumentURITitleGenerator implements URITitleGenerator
3737
{
3838
private static final String DEFAULT_TITLE = "Create page: %s";
3939

40+
/**
41+
* Generate the title of a Document URI. Using this implementation should be avoided, another implementation should
42+
* be used instead, e.g. XWikiDocumentURITitleGenerator in xwiki-platform which is used to provide proper
43+
* translations. This implementation should only be used when xwiki-rendering is running by itself.
44+
* @param reference the reference pointing to a document URI for which we want to generate a create link title
45+
* @return the URI title to display when rendering a document reference.
46+
*/
4047
@Override
4148
public String generateCreateTitle(ResourceReference reference)
4249
{

0 commit comments

Comments
 (0)