{% set prefix = (prefix is defined)?prefix:config.prefix %} {% set role = (role is defined)?role:'ROLE_'~(prefix|upper) %} {% if is_granted(role, entity) %} {% set title = (title is defined)?title:'Ver' %} {% set href = (href is defined)?href:path(prefix~'_show', { 'id': entity.id })%} {% include 'FLCoreBundle:Base:act_base.html.twig' with {'modal':(modal is defined),'href':href, 'title':title,'icon':'search'} %} {% endif %}