CategoryFactory
Implements \Joomla\CMS\Categories\CategoryFactoryInterfaceOption 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
string
The namespace
createCategory
Creates a category.
createCategory(array $options = array(), string $section = '') : \Joomla\CMS\Categories\CategoryInterface
since |
3.10.0 |
---|---|
throws |
|
Arguments
- $options
array
The options- $section
string
The section
Response
Properties
namespace
The namespace to create the categories from.
since |
3.10.0 |
---|
Type(s)
string