CategoryFactory
Implements CategoryFactoryInterfaceOption based categories factory.
| since |
3.10.0 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
The namespace must be like: Joomla\Component\Content
__construct(string namespace) : mixed
| since |
3.10.0 |
|---|
Arguments
- namespace
stringThe namespace
Response
mixed
createCategory
Creates a category.
createCategory(array options = array(), string section = '') : \Joomla\CMS\Categories\CategoryInterface
| since |
3.10.0 |
|---|---|
| throws |
|
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