function micon_content_type_form_node_type_form_builder in Micon 8
Same name and namespace in other branches
- 2.x micon_content_type/micon_content_type.module \micon_content_type_form_node_type_form_builder()
Entity builder for the node type form with menu options.
See also
menu_ui_form_node_type_form_alter()
1 string reference to 'micon_content_type_form_node_type_form_builder'
- micon_content_type_form_node_type_form_alter in micon_content_type/
micon_content_type.module - Implements hook_form_FORM_ID_alter().
File
- micon_content_type/
micon_content_type.module, line 39 - Contains micon_content_type.module.
Code
function micon_content_type_form_node_type_form_builder($entity_type, NodeTypeInterface $type, &$form, FormStateInterface $form_state) {
$type
->setThirdPartySetting('micon_content_type', 'icon', $form_state
->getValue('icon'));
Cache::invalidateTags([
'micon.discovery',
]);
}