File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -392,17 +392,17 @@ humanize
392
392
**type **: ``string ``
393
393
394
394
Transforms the given string into a human readable string (by replacing underscores
395
- by spaces, capitalizing the string, etc.) It's useful e.g. when displaying
396
- property/variable names on an interface created for end users:
395
+ with spaces, capitalizing the string, etc.) It's useful e.g. when displaying
396
+ the names of PHP properties/variables to end users:
397
397
398
398
.. code-block :: twig
399
399
400
- {{ 'DateOfBirth'|humanize }} {# renders: Date of birth #}
401
400
{{ 'dateOfBirth'|humanize }} {# renders: Date of birth #}
401
+ {{ 'DateOfBirth'|humanize }} {# renders: Date of birth #}
402
402
{{ 'date-of-birth'|humanize }} {# renders: Date-of-birth #}
403
403
{{ 'date_of_birth'|humanize }} {# renders: Date of birth #}
404
- {{ 'Date Of Birth'|humanize }} {# renders: Date of birth #}
405
404
{{ 'date of birth'|humanize }} {# renders: Date of birth #}
405
+ {{ 'Date Of Birth'|humanize }} {# renders: Date of birth #}
406
406
407
407
.. _reference-twig-filter-trans :
408
408
You can’t perform that action at this time.
0 commit comments