Twig Components / All available Twig Methods
Other pages in this section:
- __
- abbr_class
- abbr_method
- abs
- absolute_link
- absolute_url
- admin_menu_array
- allow_twig
- app
- apply
- array
- as_array
- asset
- asset_version
- attribute
- autoescape
- backtrace
- batch
- block
- bool
- boolean
- boolval
- break
- cache
- callable
- canonical
- capitalize
- column
- config
- constant
- continue
- controller
- convert_encoding
- country_name
- country_timezones
- countwidgets
- csrf_token
- currency_name
- currency_symbol
- current
- cycle
- data_uri
- date
- date_modify
- default
- defaultLocale
- defined
- deprecated
- divisible
- dns_prefetch
- do
- dump
- e
- edit_link
- embed
- empty
- encore_entry_css_files
- encore_entry_js_files
- encore_entry_link_tags
- encore_entry_script_tags
- escape
- even
- excerpt
- extends
- extension
- extension_exists
- extensions
- false
- feature
- field_factory
- file_excerpt
- file_link
- file_relative
- filter
- find_translations
- first
- first_related_content
- flag
- float
- floatval
- flush
- for
- foreach
- form
- form_end
- form_errors
- form_help
- form_label
- form_parent
- form_rest
- form_row
- form_start
- form_widget
- format
- format_args
- format_args_as_text
- format_bytes
- format_currency
- format_date
- format_datetime
- format_file
- format_file_from_text
- format_number
- format_time
- fragment_uri
- from
- getuser
- has_path
- haswidgets
- html_attr
- html_classes
- htmllang
- humanize
- icon
- if
- image
- impersonation_exit_path
- impersonation_exit_url
- import
- include
- int
- integer
- intval
- is_granted
- iterable
- join
- json_decode
- json_encode
- json_records
- keys
- knp_menu_ancestor
- knp_menu_as_string
- knp_menu_current
- knp_menu_get
- knp_menu_get_breadcrumbs_array
- knp_menu_get_current_item
- knp_menu_render
- label
- language_name
- last
- length
- less
- line
- link
- linkify
- list_templates
- listwidgets
- localdate
- locale
- locale_name
- locales
- logout_path
- logout_url
- lower
- macro
- map
- markdown
- max
- media
- menu
- menu_array
- merge
- min
- next
- next_record
- nl2br
- none
- normalize_records
- null
- number_format
- object
- odd
- order
- pager
- paginate
- paragraph
- parent
- path
- placeholders
- plaintext
- popup
- preconnect
- prefetch
- preg_filter
- preg_get
- preg_get_all
- preg_grep
- preg_match
- preg_quote
- preg_replace
- preg_split
- preload
- prerender
- previous
- previous_record
- product
- random
- range
- raw
- record
- redirect
- reduce
- related
- related_by_type
- related_content
- related_content_by_type
- related_first
- relative_path
- render
- replace
- reverse
- rootform
- round
- safestring
- same
- sandbox
- sanitise
- scalar
- select_options
- selected
- selectedchoice
- serialize
- set
- setcontent
- showimage
- shuffle
- shy
- slice
- slug
- sort
- source
- spaceless
- split
- string
- striptags
- strtotime
- strval
- sum
- svg
- t
- taxonomies
- template_from_string
- thumbnail
- timezone_name
- title
- title_case
- trans
- translate
- trim
- true
- truncate
- ucwords
- upper
- url
- url_decode
- url_encode
- use
- values
- verbatim
- widget
- widgets
- with
- yaml_dump
- yaml_encode
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.