MenuParentFormSelectorInterface
interface MenuParentFormSelectorInterface (View source)
Defines an interface for menu selector form elements and menu link options.
Methods
array
getParentSelectOptions(string $id = '', array $menus = NULL, CacheableMetadata $cacheability = NULL)
Gets the options for a select element to choose a menu and parent.
array
parentSelectElement(string $menu_parent, string $id = '', array $menus = NULL)
Gets a form element to choose a menu and parent.
Details
array
getParentSelectOptions(string $id = '', array $menus = NULL, CacheableMetadata $cacheability = NULL)
Gets the options for a select element to choose a menu and parent.
array
parentSelectElement(string $menu_parent, string $id = '', array $menus = NULL)
Gets a form element to choose a menu and parent.
The specific type of form element will vary depending on the implementation, but callers will normally need to set the #title for the element.