php_method
The php_method function Offers a way to use php static methods.
Use the first argument as a standard callable
{{ php_method('Tests\\TestFoo::someStaticMethod', ['This is a', 'php method call']) }}
{# or #}
{{ php_method(['Tests\\TestFoo', 'someStaticMethod'], ['This is a', 'php method call']) }}
{# Will call the method Tests\\TestFoo::someStaticMethod('This is a', 'php method call') #}
It also supports the @ convention
php_method('Tests\\TestFoo@someStaticMethod', ['This is a', 'php method call'])
Last updated
Was this helpful?