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_page_attribute
  • Defined in: cms/core/Shared/Helpers/page.php

Parameters

Parameter Type Description
$pageId int|string Content ID.
$key string Attribute key.
$value mixed Attribute value.

Return Value

\App\Infrastructure\Services\Attribute\AttributeBag