⇦ Back to CategoryInterface classMethod get
public \Joomla\CMS\Categories\CategoryNode|null
get
(mixed $id = 'root', mixed $forceload = false)
Loads a specific category and all its children in a CategoryNode object.
Parameters
- mixed $id an optional id integer or equal to 'root'
- bool $forceload True to force the _load method to execute
Returns
- \Joomla\CMS\Categories\CategoryNode|null CategoryNode object or null if $id is not valid
Since
Method get - Source code
/**
* Loads a specific category and all its children in a CategoryNode object.
*
* @param mixed $id an optional id integer or equal to 'root'
* @param boolean $forceload True to force the _load method to execute
*
* @return CategoryNode|null CategoryNode object or null if $id is not valid
*
* @since 3.10.0
*/
public function get($id = 'root', $forceload = false);