I
I
Igor2018-09-22 14:35:20
Drupal
Igor, 2018-09-22 14:35:20

How to add your own widget inside a block in DRUPAL8?

I have a fidget of my data type located in \Drupal\Agreement_field\Plugin\Field\FieldWidget\AgreementFieldHTML5InputWidget. Its id=Agreement_field_html5_input_widget.
In essence, I need to display a select with a data set in my block, having received its html code.
Can I add it inside my block in the build() function so as not to describe the selection from the database again?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question