Insert or update a content_type.
- Full name:
cms_insert_content_type - Defined in:
cms/core/Shared/Helpers/content-type.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentTypeData |
array|\Psr\Http\Message\ServerRequestInterface|\App\Domain\ContentType\Model\ContentType | An array of data that is used for insert or update. |
Return Value
string|null|\Qubus\Error\Error
The newly created content_type's content_type_id, null or Error if the content_type could not be created or updated.