function micon_paragraphs_form_node_type_form_builder in Micon 8
Same name and namespace in other branches
- 2.x micon_paragraphs/micon_paragraphs.module \micon_paragraphs_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_paragraphs_form_node_type_form_builder'
- micon_paragraphs_form_paragraphs_type_form_alter in micon_paragraphs/
micon_paragraphs.module - Implements hook_form_FORM_ID_alter().
File
- micon_paragraphs/
micon_paragraphs.module, line 42 - Contains micon_paragraphs.module.
Code
function micon_paragraphs_form_node_type_form_builder($entity_type, ParagraphsTypeInterface $type, &$form, FormStateInterface $form_state) {
$type
->setThirdPartySetting('micon_paragraphs', 'icon', $form_state
->getValue('icon'));
Cache::invalidateTags([
'micon.discovery',
]);
}