function field_third_party_test_field_widget_third_party_settings_form
Same name and namespace in other branches
- 9 core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module \field_third_party_test_field_widget_third_party_settings_form()
- 8.9.x core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module \field_third_party_test_field_widget_third_party_settings_form()
- 11.x core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module \field_third_party_test_field_widget_third_party_settings_form()
Implements hook_field_widget_third_party_settings_form().
File
-
core/
modules/ field/ tests/ modules/ field_third_party_test/ field_third_party_test.module, line 16
Code
function field_third_party_test_field_widget_third_party_settings_form(WidgetInterface $plugin, FieldDefinitionInterface $field_definition, $form_mode, $form, FormStateInterface $form_state) {
$element['field_test_widget_third_party_settings_form'] = [
'#type' => 'textfield',
'#title' => t('3rd party widget settings form'),
'#default_value' => $plugin->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form'),
];
return $element;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.