if ($plugin instanceof PluginInterface
) { $plugins[] =
$plugin;
} elseif (\
is_string($plugin) && \
is_subclass_of($plugin, ConstructablePluginInterface::
class)) { if (!
isset(static::
$plugin_pool[$plugin])) { $p =
new $plugin();
static::
$plugin_pool[$plugin] =
$p;
} $plugins[] =
static::
$plugin_pool[$plugin];
} } $plugins =
$this->renderer->
filterParserPlugins($plugins);
foreach ($plugins as $plugin) { $this->parser->
addPlugin($plugin);
} } public function setStatesFromCallInfo(array
$info): void
{ $this->renderer->
setCallInfo($info);
if (isset($info['modifiers'
]) && \
is_array($info['modifiers'
]) && \
in_array('+',
$info['modifiers'
], true
)) {