Class GetDisplayNameFunction

java.lang.Object
com.atlassian.confluence.plugins.soy.GetDisplayNameFunction
All Implemented Interfaces:
com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<String>

public class GetDisplayNameFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<String>
GetDisplayNameFunction to get the display name from the language Manager.
Since:
9.0.0
  • Constructor Details

    • GetDisplayNameFunction

      public GetDisplayNameFunction(com.atlassian.plugin.PluginAccessor pluginAccessor)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.soy.renderer.SoyFunction
    • apply

      public String apply(Object... args)
      Specified by:
      apply in interface com.atlassian.soy.renderer.SoyServerFunction<String>
      Parameters:
      args - two arguments expected, first a unique key to store the value against and second an HTML-safe string
    • validArgSizes

      public Set<Integer> validArgSizes()
      Specified by:
      validArgSizes in interface com.atlassian.soy.renderer.SoyFunction