CategoryFactory

Implements \Joomla\CMS\Categories\CategoryFactoryInterface

Option based categories factory.

since

3.10.0

Methods

__construct

The namespace must be like: Joomla\Component\Content

__construct(string $namespace) 
since

3.10.0

Arguments

$namespace

stringThe namespace

createCategory

Creates a category.

createCategory(array $options = array(), 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

3.10.0

Type(s)

string