Common & useful classes, resources, extensions. Based on Symfony framework.
Located here: Meritoo\CommonBundle\Twig\FormExtension
. It's Twig extension related to
the FormService service. Allows to use functionality provided by the FormService
service
in Twig templates.
Returns information if HTML5 inline validation is enabled. Exactly
as Meritoo\CommonBundle\Service\FormService::isHtml5ValidationEnabled()
method.
The HTML5 validation may be enabled or disabled in config/packages/meritoo_common.yaml
configuration file. By default
is enabled.
Example below:
meritoo_common:
form:
novalidate: true
<form{% if not meritoo_common_form_is_html5_validation_enabled() %} novalidate{% endif %}>
{# ... #}
</form>
Result:
<form novalidate>
{# ... #}
</form>
- Configuration
- Dependency Injection Extension
- Descriptor of application
- Descriptor of bundle
- Descriptors of bundles
- Services:
- Tests
- Translations
- Twig extensions: