Last modified by Admin on 2024/03/29 14:49

<
From version < 331.1 >
edited by Admin
on 2022/07/27 07:54
To version < 332.1 >
edited by Vincent Massol
on 2022/07/27 10:09
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Admin
1 +xwiki:XWiki.VincentMassol
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -214,14 +214,31 @@
214 214   * @return the list of categories of the macro
215 215   * @since 14.6RC1
216 216   */
217 - @Unstable
218 - default Set<String> getMacroCategories(MacroId macroId)
217 + Set<String> getMacroCategories(MacroId macroId)
219 219   {
220 220   return Set.of();
221 221   }
222 222  }
223 223  {{/code}}
223 +
224 +{{version before="14.6RC1"}}
225 +{{version since="13.10.8,14.4.3"}}(((
226 +{{code language="java"}}
227 + /**
228 + * Return the set of category of a given macro.
229 + *
230 + * @param macroId the id of the macro to get the category for
231 + * @return the category of the macro
232 + * @since 13.10.8
233 + * @since 14.4.3
234 + */
235 + String getMacroCategory(MacroId macroId)
236 +{{/code}}
224 224  )))
238 +{{/version}}
239 +{{/version}}
240 +)))
241 +
225 225  == Configuration ==
226 226  
227 227  The Macro Transformation is enabled by default in ##xwiki.properties## under the ##rendering.transformations## key:

Get Connected