Back to MenuFactoryInterface class

Method createMenu

public \Joomla\CMS\Menu\AbstractMenu
createMenu
(string $client, array $options = [])
Creates a new Menu object for the requested format.
Parameters
  • string $client The name of the client
  • array $options An associative array of options
Returns
  • \Joomla\CMS\Menu\AbstractMenu
Since
  • 4.0.0

Method createMenu - Source code

/**
 * Creates a new Menu object for the requested format.
 *
 * @param   string  $client   The name of the client
 * @param   array   $options  An associative array of options
 *
 * @return  AbstractMenu
 *
 * @since   4.0.0
 */
public function createMenu(string $client, array $options = []) : AbstractMenu;