Common & useful classes, resources, extensions. Based on Symfony framework.
Located here: Meritoo\CommonBundle\Twig\CommonExtension
. It's Twig extension that provides functions and filters for
common operations.
Verifies/Filters given value if is empty. Returns replacement of empty value if given value is empty. Otherwise - given value.
Example below.
<p>First name: {{ first_name | meritoo_common_empty_value }}</p>
Result:
<p>First name: -</p>
- Configuration
- Dependency Injection Extension
- Descriptor of application
- Descriptor of bundle
- Descriptors of bundles
- Services:
- Tests
- Translations
- Twig extensions: