Returns tags with a given parent and/or a given depth-level
if no arguments passed returns all categories.
public find ( integer $parent = null, integer $depth = null, string | null $sortBy = null, string | null $sortOrder = null ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface[] | ||
$parent | integer | the id of the parent to filter for |
$depth | integer | the depth-level to filter for |
$sortBy | string | null | column name to sort the categories by |
$sortOrder | string | null | sort order |
return | Sulu\Bundle\CategoryBundle\Entity\CategoryInterface[] |