CategoryFactory

Implements CategoryFactoryInterface

Option based categories factory.

since

3.10.0

package

Application

Methods

__construct

The namespace must be like: Joomla\Component\Content

__construct(string namespace) : mixed
since

4.0.0

Arguments

namespace

stringThe namespace

Response

mixed

createCategory

Creates a category.

createCategory(array options = [], string section = '') : \Joomla\CMS\Categories\CategoryInterface
since

3.10.0

throws

\Joomla\CMS\Categories\SectionNotFoundException

Arguments

options

arrayThe options

section

stringThe section

Response

\Joomla\CMS\Categories\CategoryInterface

Properties

namespace

The namespace to create the categories from.

since

4.0.0

Type(s)

string