Browse Source

Add docoumentation for translation filter

3.1.x 3.0.0
Chi 4 years ago
parent
commit
bf226278b0
  1. 6
      docs/cheat-sheet.md

6
docs/cheat-sheet.md

@ -312,6 +312,12 @@ It is also possible to extract file URL directly from an entity.
{{ media|file_url }} {{ media|file_url }}
``` ```
## Entity translation
That is typically needed when printing data from referenced entities.
```twig
{{ media|translation.title|view }}
```
## PHP ## PHP
PHP filter is disabled by default. You can enable it in `settings.php` file as PHP filter is disabled by default. You can enable it in `settings.php` file as
follows: follows:

Loading…
Cancel
Save