function label_help_form_field_config_edit_form_builder in Label Help 8
Entity builder for the menu configuration entity.
1 string reference to 'label_help_form_field_config_edit_form_builder'
- label_help_form_field_config_edit_form_alter in ./
label_help.module - Implements hook_form_FORM_ID_alter().
File
- ./
label_help.module, line 102 - This is the file description for the Label Help module.
Code
function label_help_form_field_config_edit_form_builder($entity_type, $field, &$form, FormStateInterface $form_state) {
if ($form_state
->getValue([
'settings',
'label_help_description',
])) {
$field
->setThirdPartySetting('label_help', 'label_help_description', $form_state
->getValue([
'settings',
'label_help_description',
]));
return;
}
$field
->unsetThirdPartySetting('label_help', 'label_help_description');
}