function menu_attributes_form_menu_link_content_form_alter in Menu Attributes 8
Implements hook_form_BASE_FORM_ID_alter().
Adds menu attribute options to the menu_link_content_form.
See also
menu_attributes_form_menu_edit_item_submit()
File
- ./
menu_attributes.module, line 158 - Alters the menu item form to allow the administrator to specify additional attributes for the menu link
Code
function menu_attributes_form_menu_link_content_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
$menu_link = $form_state
->getFormObject()
->getEntity();
_menu_attributes_form_alter($form, $form_state, $menu_link);
}