1

I want generate an new form in a custom module via the generate:form command.

In this step, I must enter a field type.

enter image description here

How can I get all available field types?

3

With the term "field type" you probably don't find what you are looking for. Better search for "form and render elements". You can find a list of all available elements here:

https://api.drupal.org/api/drupal/elements/8.2.x

You can use all elements of the type "FormElement".

3
  • Thank you :) I'm surprised , I don't see any taxonomy field type Sep 7 '16 at 11:48
  • That's a real field type (which are used to store data), in D8 that is not a separate field type, but an entity reference field.
    – 4k4
    Sep 7 '16 at 11:51
  • If you want to store data, generate a custom entity with field types and then use an entity form.
    – 4k4
    Sep 7 '16 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.