public function listAction()
{
/**
* @var Plugin[] $templates
*/
$templates = $this->get('elcodi.repository.plugin')->findBy(['type' => PluginTypes::TYPE_TEMPLATE]);
$assetPaths = [];
foreach ($templates as $plugin) {
$assetPath = str_replace('bundle', '', strtolower($plugin->getBundleName()));
$assetPaths[$plugin->getHash()] = $assetPath;
}
return ['templates' => $templates, 'assetPaths' => $assetPaths];
}