function taxonomy_menu_ui_taxonomy_term_builder in Taxonomy Menu UI 8
Entity form builder to add the menu information to the taxonomy term.
1 string reference to 'taxonomy_menu_ui_taxonomy_term_builder'
File
- ./
taxonomy_menu_ui.module, line 247 - Add ability to create menu links for taxonomy terms.
Code
function taxonomy_menu_ui_taxonomy_term_builder($entity_type, TermInterface $entity, &$form, FormStateInterface $form_state) {
$entity->menu = $form_state
->getValue('menu');
}