Update content attribute field based on content ID.
If the attribute field for the content does not exist, it will be added.
- Full name:
update_content_attribute - Defined in:
cms/core/Shared/Helpers/content.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentId |
string | Content ID. |
$key |
string | Attribute key. |
$value |
mixed | Attribute value. |
Return Value
\App\Infrastructure\Services\Attribute\AttributeBag