Userfunction menu
Attention
It is still possible to create a menu with special = userfunction
for backward compatibility reasons.
However we would advise you to write a customized MenuProcessor and style the output with Fluid instead.
Calls a user function/method in class which should return an array with page records for the menu.
Properties
Name | Type |
---|---|
string |
special.userFunc
-
- Type
- string
Name of the user function
Example: Set a userFunc
lib.custommenu = HMENU
lib.custommenu {
special = userfunction
special.userFunc = MyVendor\MyExtension\Userfuncs\CustomMenu->makeMenuArray
}
Copied!