1 layout_menu_item.class.inc LayoutMenuItem::delete()

Delete a menu item configuration.

File

core/modules/layout/includes/layout_menu_item.class.inc, line 180
Class for storing information about menu item entries.

Class

LayoutMenuItem
@file Class for storing information about menu item entries.

Code

function delete() {
  config('layout.menu_item.' . $this->name)
    ->delete();
  layout_reset_caches();
  menu_rebuild();
}