CategoryInterface

The category interface.

since

3.10.0

Methods

get

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

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

3.10.0

Arguments

$id

mixedan optional id integer or equal to 'root'

$forceload

booleanTrue to force the _load method to execute

Response

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