Public Member Functions | |
| formElement (FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) | |
| validate ($element, FormStateInterface $form_state) | |
Plugin implementation of the 'field_example_text' widget.
@FieldWidget( id = "josn-schema-form", module = "json_schema_field", label = @Translation("JSON Schema Form widget"), field_types = { "json", "" } )
Definition at line 22 of file JsonSchemaFormWidget.php.
| Drupal\json_schema_field\Plugin\Field\FieldWidget\JsonSchemaFormWidget::formElement | ( | FieldItemListInterface | $items, |
| $delta, | |||
| array | $element, | ||
| array & | $form, | ||
| FormStateInterface | $form_state | ||
| ) |
| Drupal\json_schema_field\Plugin\Field\FieldWidget\JsonSchemaFormWidget::validate | ( | $element, | |
| FormStateInterface | $form_state | ||
| ) |
Validate the color text field.
Definition at line 48 of file JsonSchemaFormWidget.php.