Issue #1898070 by benjifisher, jjcarrion, LinL, idflood, joelpittet, oshelach, tlattimore, Les Lim, sergey.semashko, jesse.d, bdgreen, jenlampton, Cottser, duellj, artofeclipse, vlad.dancer, steveoliver, EVIIILJ, c4rl, elv, OpenChimp: File.module - Convert theme_ functions to Twig.
2014-06-13 03:13:30 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Default theme implementation to display a file form widget.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - element: Form element for the file upload.
|
|
|
|
* - attributes: HTML attributes for the containing element.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_file_managed_file()
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
2015-06-08 21:53:52 +00:00
|
|
|
{%
|
|
|
|
set classes = [
|
|
|
|
'js-form-managed-file',
|
|
|
|
'form-managed-file',
|
|
|
|
]
|
|
|
|
%}
|
|
|
|
<div{{ attributes.addClass(classes) }}>
|
Issue #1898070 by benjifisher, jjcarrion, LinL, idflood, joelpittet, oshelach, tlattimore, Les Lim, sergey.semashko, jesse.d, bdgreen, jenlampton, Cottser, duellj, artofeclipse, vlad.dancer, steveoliver, EVIIILJ, c4rl, elv, OpenChimp: File.module - Convert theme_ functions to Twig.
2014-06-13 03:13:30 +00:00
|
|
|
{{ element }}
|
|
|
|
</div>
|