FormExtension.php
Interfaces, Classes, Traits and Enums
- FormExtension
- FormExtension extends Twig with form capabilities.
Table of Contents
- 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> $selectedValue) : bool
This is a function and not callable due to performance reasons.
Parameters
- $choice : ChoiceView
- $selectedValue : string|array<string|int, mixed>
-
The selected value to compare
Tags
Return values
bool —Whether the choice is selected