You are here

function menu_attributes_form_menu_link_edit_alter in Menu Attributes 8

Implements hook_form_FORM_ID_alter().

Adds menu attribute options to the edit menu item form.

See also

_menu_attributes_form_alter()

menu_attributes_form_menu_edit_item_submit()

File

./menu_attributes.module, line 141
Alters the menu item form to allow the administrator to specify additional attributes for the menu link

Code

function menu_attributes_form_menu_link_edit_alter(array &$form, FormStateInterface $form_state, $form_id) {

  // Although the form itself can be altered to show the attribute fields, there
  // is not currently a proper way to save the attributes without bypassing
  // core's current functionality.
  // @see https://www.drupal.org/node/2656534

  //_menu_attributes_form_alter($form, $form_state, $form_id);
}