DataCollectorTypeExtension

class DataCollectorTypeExtension extends AbstractTypeExtension Type extension for collecting data of a form with this type. 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 t

DataMapperInterface

interface DataMapperInterface Methods mapDataToForms(mixed $data, FormInterface[] $forms) Maps properties of some data to a list of forms. mapFormsToData(FormInterface[] $forms, mixed $data) Maps the data of a list of forms into the properties of some data. Details mapDataToForms(mixed $data, FormInterface[] $forms) Maps properties of some data to a list of forms. Parameters mixed $data Structured data FormInterface[] $forms A list of {@

DataCollectorTypeExtension::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called after the extended type has built the form to further modify it. Parameters FormBuilderInterface $builder The form builder array $options The options

DataCollectorTypeExtension::getExtendedType()

string getExtendedType() Returns the name of the type being extended. Return Value string The name of the type being extended

DataDumperInterface

interface DataDumperInterface DataDumperInterface for dumping Data objects. Methods dump(Data $data) Dumps a Data object. Details dump(Data $data) Dumps a Data object. Parameters Data $data A Data object

DataCollectorTranslator::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string) array $parameters An array of parameters for the message string|null $domain The domain for the message or null to use the default string|null $locale The locale or null to use the default Return Value string The translated string Exceptions InvalidArgum

DataCollectorTranslator::transChoice()

string transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given choice message by choosing a translation according to a number. Parameters string $id The message id (may also be an object that can be cast to string) int $number The number to use to find the indice of the message array $parameters An array of parameters for the message string|null $domain The domain for the message or null to u

DataCollectorTranslator

class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInterface Constants MESSAGE_DEFINED MESSAGE_MISSING MESSAGE_EQUALS_FALLBACK Methods __construct(TranslatorInterface $translator) string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. string transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = nu

DataCollectorTranslator::getLocale()

string getLocale() Returns the current locale. Return Value string The locale

DataCollectorTranslator::getCollectedMessages()

array getCollectedMessages() Return Value array