Can a modifier plugin for PHP Smarty access the Smarty object?
The block and function plugin types both take the current Smarty object as a parameter. i.e.
function smarty_function_NAME($params, Smarty_Internal_Template $Smarty) {...}
function smarty_block_NAME($params, $content, Smarty_Internal_Template $Smarty, &$repeat) {...}
But the modifier plugin does not. i.e.
function smarty_modifier_NAME($arg1, $arg2, ...) {...}
Is there any way to access the Smarty object from within a modifier?
I'd like to make a modifier that get the value of a variable name string, like so:
{$colorblue = '#0317e9'}
{$index = 'blue'}
{$_color = "color`$index`"|smarty_variable_value}