ContentRepository

Implements \ContentRepositoryInterface

Class ContentRepository

This class represents the content repository

category

System

package

Content

Methods

ContentRepository constructor

__construct(\ContentWriterInterface $writer) 

Arguments

$writer

\ContentWriterInterface

Content writer

Save the info element content

storeInfoElementContent(\InfoElementContent $infoElementContent) : \ContentRepositoryInterface
Throws
\LocalizedAttributeNotFoundException

On missing locale-based value

Arguments

$infoElementContent

\InfoElementContent

Info element content

Response

\ContentRepositoryInterface

Same instance for chained method calls

Save the info page content

storeInfoPageContent(\InfoPageContent $infoPageContent) : \ContentRepositoryInterface
Throws
\LocalizedAttributeNotFoundException

On missing locale-based value

Arguments

$infoPageContent

\InfoPageContent

Info page content

Response

\ContentRepositoryInterface

Same instance for chained method calls

Save the link page content

storeLinkPageContent(\LinkPageContent $linkPageContent) : \ContentRepositoryInterface
Throws
\LocalizedAttributeNotFoundException

On missing locale-based value

Arguments

$linkPageContent

\LinkPageContent

Link page content

Response

\ContentRepositoryInterface

Same instance for chained method calls

Properties

Content writer

writer : \ContentWriter
var

Type(s)

\ContentWriter