LinkPageContentBuilder

Implements \BuilderInterface, \LinkPageContentBuilderInterface

Class LinkPageContentBuilder

This class represents a link page content builder

category

System

package

Content

Methods

Return the created LinkPageContent instance

build() : \LinkPageContent
Throws
\UnfinishedBuildException

On calling build() before having all properties set

Response

\LinkPageContent

Link page content entity object

Return new instance of the builder

create() : \LinkPageContentBuilder
static

Response

\LinkPageContentBuilder

New instance

Set the page position

inPosition(\PagePosition $position) : \LinkPageContentBuilder

Arguments

$position

\PagePosition

Page position

Response

\LinkPageContentBuilder

Same instance

Set the content group id

usingId(integer|null $id = null) : \LinkPageContentBuilder

Arguments

$id

integer|null

Response

\LinkPageContentBuilder

Same instance

Set the localized content names

usingNames(\ContentNameCollection $names) : \LinkPageContentBuilder

Arguments

$names

\ContentNameCollection

Localized names

Response

\LinkPageContentBuilder

Same instance

Set whether the link page opens in a new tab

usingOpenInNewTabStatus(\ContentOpenInNewTabStatus $openInNewTabStatus) : \LinkPageContentBuilder

Arguments

$openInNewTabStatus

\ContentOpenInNewTabStatus

Whether the link page opens in a new tab

Response

\LinkPageContentBuilder

Same instance

Set the activation status

usingStatus(\ContentStatus $status) : \LinkPageContentBuilder

Arguments

$status

\ContentStatus

Activation status

Response

\LinkPageContentBuilder

Same instance

Set the localized content titles

usingTitles(\ContentTitleCollection $titles) : \LinkPageContentBuilder

Arguments

$titles

\ContentTitleCollection

Localized titles

Response

\LinkPageContentBuilder

Same instance

Properties

Content position

position : \PagePosition
var

Type(s)

\PagePosition

Content status

status : \ContentStatus
var

Type(s)

\ContentStatus

Localized content titles

titles : \ContentTitleCollection

Localized content names

names : \ContentNameCollection

Whether the link page is opened in a new tab

openInNewTabStatus : \ContentOpenInNewTabStatus

Content group id

id : integer|null
var

Type(s)

integer|null