Layout methods are registered with the
For a full list of default layout methods, please check out the Reference.
Be aware that you cannot override these default layout methods with any custom layout method.
You can extend the set of defined layout methods in a plugin file.
This example shows the basic architecture of a layout method. You define the method name with the key for the
layoutMethods extension array.
$this in the callback function refers to the
In some cases it might be helpful to be able to pass arguments to the method:
You can define arguments for a method like this:
And then use it like this: