Back to CMSWebApplicationInterface class

Method getMenu

public \Joomla\CMS\Menu\AbstractMenu|null
getMenu
(mixed $name = null, mixed $options = array())
Get the menu object.
Parameters
  • string $name The application name for the menu
  • array $options An array of options to initialise the menu with
Returns
  • \Joomla\CMS\Menu\AbstractMenu|null An AbstractMenu object or null if not set.
Since
  • 4.0.0

Method getMenu - Source code

/**
 * Get the menu object.
 *
 * @param   string  $name     The application name for the menu
 * @param   array   $options  An array of options to initialise the menu with
 *
 * @return  AbstractMenu|null  An AbstractMenu object or null if not set.
 *
 * @since   4.0.0
 */
public function getMenu($name = null, $options = array());