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

Reset the internally stored contexts.

This is used before storing a layout, or when fresh contexts are important, such as when actively changing the layout's path.

File

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

Class

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

Code

function resetContexts() {
  $this->contexts = NULL;
}