Documentation

Extension

Table of Contents

Classes

AssetExtension
Twig extension for the Symfony Asset component.
CodeExtension
Twig extension relate to PHP code and used by the profiler and the default exception templates.
CsrfExtension
CsrfRuntime
DumpExtension
Provides integration of the dump() function with Twig.
ExpressionExtension
ExpressionExtension gives a way to create Expressions from a template.
FormExtension
FormExtension extends Twig with form capabilities.
HttpFoundationExtension
Twig extension for the Symfony HttpFoundation component.
HttpKernelExtension
Provides integration with the HttpKernel component.
HttpKernelRuntime
Provides integration with the HttpKernel component.
LogoutUrlExtension
LogoutUrlHelper provides generator functions for the logout URL to Twig.
ProfilerExtension
RoutingExtension
Provides integration of the Routing component with Twig.
SecurityExtension
SecurityExtension exposes security context features.
SerializerExtension
SerializerRuntime
StopwatchExtension
Twig extension for the stopwatch helper.
TranslationExtension
Provides integration of the Translation component with Twig.
WebLinkExtension
Twig extension for the Symfony WebLink component.
WorkflowExtension
WorkflowExtension.
YamlExtension
Provides integration of the Yaml component with Twig.

Functions

twig_is_selected_choice()  : bool
Returns whether a choice is selected for a given form value.

Functions

twig_is_selected_choice()

Returns whether a choice is selected for a given form value.

twig_is_selected_choice(ChoiceView $choice, string|array<string|int, mixed>|null $selectedValue) : bool

This is a function and not callable due to performance reasons.

Parameters
$choice : ChoiceView
$selectedValue : string|array<string|int, mixed>|null
Tags
see
ChoiceView::isSelected()
Return values
bool

        
On this page

Search results