Files methods are registered with the
For a full list of default files methods, please check out the Reference.
Be aware that you cannot override these default files methods with any custom files method.
You can extend the set of defined files methods very easily in a plugin file.
This example shows the basic architecture of a files method. You define the method name with the key for the
filesMethods extension array.
$this in the callback function is the
In some cases it might be helpful to be able to pass arguments to the method:
The definition for such a method with arguments is very simple: