Add attribute data field to a content.


  • Full name: add_content_attribute
  • Defined in: cms/core/Shared/Helpers/content.php

Parameters

Parameter Type Description
$contentId string Content ID.
$key string Attribute name.
$value mixed Attribute value. Must be serializable if non-scalar.

Return Value

\App\Infrastructure\Services\Attribute\AttributeBag