CategoryFactory
Implements CategoryFactoryInterfaceOption based categories factory.
since |
3.10.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
The namespace must be like: Joomla\Component\Content
__construct( namespace) :
since |
4.0.0 |
---|
Arguments
- namespace
string
The namespace
Response
mixed
createCategory
Creates a category.
createCategory(mixed||string|int options = [], section = '') : \Joomla\CMS\Categories\CategoryInterface
since |
3.10.0 |
---|---|
throws |
Arguments
- options
array<string|int, mixed>
The options- section
string
The section
Response
Properties
namespace
The namespace to create the categories from.
since |
4.0.0 |
---|
Type(s)
string