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( client, mixed||string|int options = []) : \Joomla\CMS\Menu\AbstractMenu
since

4.0.0

throws

InvalidArgumentException

Arguments

client

stringThe name of the client

options

array<string|int, mixed>An associative array of options

Response

AbstractMenu

getCacheControllerFactory

Get the CacheControllerFactoryInterface.

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

4.2.0

Response

CacheControllerFactoryInterface

setCacheControllerFactory

Set the cache controller factory to use.

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

4.2.0

Arguments

cacheControllerFactory

CacheControllerFactoryInterfaceThe cache controller factory to use.

Response

void

Properties

cacheControllerFactory

CacheControllerFactoryInterface

inherited
since

4.2.0

Type(s)

CacheControllerFactoryInterface