Userfunction menu

Calls a user function/method in class which should return an array with page records for the menu.

Properties

Name display Type
string
special.userFunc
Type
string

Name of the user function

Example: Set a userFunc

This is still possible for backward compability reasons but not recommended:
lib.custommenu = HMENU
lib.custommenu {
    special = userfunction
    special.userFunc = MyVendor\MyExtension\Userfuncs\CustomMenu->makeMenuArray
}
Copied!