BundleEntryReaderInterface

interface BundleEntryReaderInterface implements BundleReaderInterface Reads individual entries of a resource file. Methods mixed read(string $path, string $locale) Reads a resource bundle. from BundleReaderInterface mixed readEntry(string $path, string $locale, array $indices, bool $fallback = true) Reads an entry from a resource bundle. Details mixed read(string $path, string $locale) Reads a resource bundle. Parameters string $path The

PropertyPath::getElement()

string getElement(int $index) Returns the element at the given index in the property path. Parameters int $index The index key Return Value string A property or index name Exceptions OutOfBoundsException If the offset is invalid

ChoiceListFactoryInterface

interface ChoiceListFactoryInterface Creates {@link ChoiceListInterface} instances. Methods ChoiceListInterface createListFromChoices(array|Traversable $choices, null|callable $value = null) Creates a choice list for the given choices. ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. ChoiceListView createView(ChoiceListInterface $list, null|array|callable $preferredCh

CliDumper::setColors()

setColors(bool $colors) Enables/disables colored output. Parameters bool $colors

DateType::finishView()

finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. This method gets called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. When this method is called, views of the form's children have already been built and finished and can be accessed. You should only implement such logic in this method that actually accesses child views. For everything else you are recommended to implement {@link buil

FormConfigInterface::getEmptyData()

mixed getEmptyData() Returns the data that should be returned when the form is empty. Return Value mixed The data returned if the form is empty

LazyChoiceList::getStructuredValues()

string[] getStructuredValues() Returns the values in the structure originally passed to the list. Contrary to {@link getValues()}, the result is indexed by the original keys of the choices. If the original array contained nested arrays, these nested arrays are represented here as well: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array('Yes' => true, 'No' => false), 'Undecided' => array('Maybe' => null), ), ));

FormTypeValidatorExtension

class FormTypeValidatorExtension extends BaseValidatorExtension Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the view. from AbstractTypeExtension finishView(FormView $view, FormInterface $form, array $options) Finishes the view. from AbstractTypeExtension configureOptions(OptionsResolver $resolver) Configures the options for this type. __construct(ValidatorInterface

ButtonBuilder::add()

FormBuilderInterface add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array()) Unsupported method. This method should not be invoked. Parameters string|int|FormBuilderInterface $child string|null $type array $options Return Value FormBuilderInterface The builder object Exceptions BadMethodCallException

ExecutionContext::isConstraintValidated()

bool isConstraintValidated(string $cacheKey, string $constraintHash) Returns whether a constraint was validated for an object. Parameters string $cacheKey The hash of the object string $constraintHash The hash of the constraint Return Value bool Whether the constraint was already validated