}if (!
function_exists('csrf_token'
)) { /**
* Returns the CSRF token name.
* Can be used in Views when building hidden inputs manually,
* or used in javascript vars when using APIs.
*/
function csrf_token(): string
{ return Services::
security()->
getTokenName();
}}if (!
function_exists('csrf_header'
)) { /**
* Returns the CSRF header name.
* Can be used in Views by adding it to the meta tag
* or used in javascript to define a header name when using APIs.
*/
function csrf_header(): string
{