ChoiceFormField::addChoice()

addChoice(DOMElement $node) Adds a choice to the current ones. This method should only be used internally. Parameters DOMElement $node Exceptions LogicException When choice provided is not multiple nor radio

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

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

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

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::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

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