ChoiceFormField

class ChoiceFormField extends FormField ChoiceFormField represents a choice form field. It is constructed from a HTML select tag, or a HTML checkbox, or radio inputs. Methods __construct(DOMElement $node) Constructor. from FormField string getName() Returns the name of the field. from FormField string|array getValue() Gets the value of the field. from FormField setValue(string $value) Sets the value of the field. bool hasValue() Returns true if the field should be includ

ChoiceFormField::containsOption()

bool containsOption(string $optionValue, array $options) Checks whether given value is in the existing options. Parameters string $optionValue array $options Return Value bool

Choice

class Choice extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_CHOICE_ERROR TOO_FEW_ERROR TOO_MANY_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Const

CheckExceptionOnInvalidReferenceBehaviorPass

class CheckExceptionOnInvalidReferenceBehaviorPass implements CompilerPassInterface Checks that all references are pointing to a valid service. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

CheckDefinitionValidityPass

class CheckDefinitionValidityPass implements CompilerPassInterface This pass validates each definition individually only taking the information into account which is contained in the definition itself. Later passes can rely on the following, and specifically do not need to perform these checks themselves: non synthetic, non abstract services always have a class set synthetic services are always public Methods process(ContainerBuilder $container) Processes the ContainerBuilder to validate

CheckReferenceValidityPass

class CheckReferenceValidityPass implements CompilerPassInterface Checks the validity of references. The following checks are performed by this pass: - target definitions are not abstract Methods process(ContainerBuilder $container) Processes the ContainerBuilder to validate References. Details process(ContainerBuilder $container) Processes the ContainerBuilder to validate References. Parameters ContainerBuilder $container

CheckCircularReferencesPass

class CheckCircularReferencesPass implements CompilerPassInterface Checks your services for circular references. References from method calls are ignored since we might be able to resolve these references depending on the order in which services are called. Circular reference from method calls will only be detected at run-time. Methods process(ContainerBuilder $container) Checks the ContainerBuilder object for circular references. Details process(Containe

CheckboxType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

CheckboxType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name

CheckboxType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options