MenuFactory

Implements MenuFactoryInterface

Default factory for creating Menu objects

since

4.0.0

package

Joomla CMS

Methods

createMenu

Creates a new Menu object for the requested format.

createMenu(string client, array options = []) : \Joomla\CMS\Menu\AbstractMenu
since

4.0.0

throws

\InvalidArgumentException

Arguments

client

stringThe name of the client

options

arrayAn associative array of options

Response

\Joomla\CMS\Menu\AbstractMenu

getCacheControllerFactory

Get the CacheControllerFactoryInterface.

getCacheControllerFactory() : \Joomla\CMS\Cache\CacheControllerFactoryInterface
inherited
since

4.2.0

Response

\Joomla\CMS\Cache\CacheControllerFactoryInterface

setCacheControllerFactory

Set the cache controller factory to use.

setCacheControllerFactory(\Joomla\CMS\Cache\CacheControllerFactoryInterface cacheControllerFactory = null) : void
inherited
since

4.2.0

Arguments

cacheControllerFactory

\Joomla\CMS\Cache\CacheControllerFactoryInterfaceThe cache controller factory to use.

Properties

cacheControllerFactory

CacheControllerFactoryInterface

inherited
since

4.2.0

Type(s)

CacheControllerFactoryInterface