CategoryInterface

The category interface.

since

3.10.0

package

Application

Methods

get

Loads a specific category and all its children in a CategoryNode object.

get(mixed id = 'root', bool forceload = false) : \Joomla\CMS\Categories\CategoryNode|null
since

3.10.0

Arguments

id

mixedan optional id integer or equal to 'root'

forceload

boolTrue to force the _load method to execute

Response

\Joomla\CMS\Categories\CategoryNode|nullCategoryNode object or null if $id is not valid