REQ_CALL_PARAM = 'rex-api-call'
This is a base class for all functions which a component may provide for public use.
$published : bool
Flag, indicating if this api function may be called from the frontend. False by default.
$result : \rex_api_result
The result of the function call.
requiresCsrfProtection() : bool
Csrf validation is disabled by default for backwards compatiblity reasons. This default will change in a future version.
Prepare all your api functions to work with csrf token by using your-api-class::getUrlParams()/getHiddenFields(), otherwise they will stop work.