Thx luceos !
I seem OK, I can override full feature:
return [
(new Extend\Formatter)
->configure(function (Configurator $config) {
$tag = $config->tags['quote'];
$tag->template = preg_replace(
'(.*)',
'rrrrrrrrr',
$tag->template
);
$config->rendering->parameters['L_WROTE'] = 'A écrit';
extract($config->finalize());
})
];
Replace all QUOTE tag by rrrrrrrrr
. But I just whould like to replace wrote
by a écrit
...
return [
// Override quote tags
(new Extend\Formatter)
->configure(function (Configurator $config) {
$tag = $config->tags['quote'];
$config->rendering->parameters['L_WROTE'] = 'A écrit';
extract($config->finalize());
})
];
Not working
return [
// OVerride quote tags
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->rendering->parameters['L_WROTE'] = 'A écrit';
})
];
Not working... I just want override L_WROTEparametter.