Expression Language

Symfony expression language is widely used in TYPO3 core. T3api also uses it in two places:

T3api utilizes TYPO3 core expression language feature. So, if you would like to extend expression language used in t3api core, you need to register new provider in the same way as you do it e.g. for TS. Just notice that appropriate context has to be specified as array key (in this case it’s t3api). Code below shows how to register MyCustomProvider in t3api context.

typo3conf/ext/my_ext/Configuration/ExpressionLanguage.php
return [
     't3api' => [
         \Vendor\MyExt\ExpressionLanguage\MyCustomProvider::class,
     ],
];

After registration of custom provider follow TYPO3 documentation how to add additional variables and additional functions into expression language. Now you can use your custom variables and functions inside t3api security check or serialization and deserialization expressions.