Update a Content Type in the content_type table.
See
- See: \App\Shared\Helpers\cms_insert_content_type() For what fields can be set in $contentTypeData.
- Full name:
cms_update_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 content_type data |
| or a content_type object. |
Return Value
string|null|\Qubus\Error\Error
The updated content_type's id, Exception or return null if content_type could not be updated.