ContentTypeFactory
in package
Content type factory
Table of Contents
Constants
- CONTENT_TYPES_FILE_NAME = \Arikaim\Core\Utils\Path::CONFIG_PATH . 'content-types.php'
- Default content types registry config file name
Methods
- create() : ContentTypeInterface|null
- Create content type
- has() : bool
- Check if content type exists
Constants
CONTENT_TYPES_FILE_NAME
Default content types registry config file name
public
mixed
CONTENT_TYPES_FILE_NAME
= \Arikaim\Core\Utils\Path::CONFIG_PATH . 'content-types.php'
Methods
create()
Create content type
public
static create(string $name) : ContentTypeInterface|null
Parameters
- $name : string
Return values
ContentTypeInterface|nullhas()
Check if content type exists
public
static has(string $name) : bool
Parameters
- $name : string