Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Twig component template and snippets
{#
Title
Description.
@param
#}
{# Parameters #}
{# Variables #}
{# Output #}
'.text.html.twig':
'Component':
'prefix': 'component'
'body': """
{#
${1:Title}
${2:Description}.
@param$3
#}
{# Parameters #}
{# Variables #}
{# Output #}
"""
'Parameter':
'prefix': '@param'
'body': '@param {${1:string/int/bool/array/object/ElementCriteriaModel/AssetFileModel}} ${2:name} ${3:(optional)}$4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.