LinkPageContent

Implements \ContentAttributesInterface, \ContentNameAttributeInterface, \ContentLinkAttributesInterface

Class LinkPageContent

This class represents a link page content entity

category

System

package

Content

Methods

LinkPageContent constructor

__construct(\ContentPositionInterface $pagePosition, \ContentStatusInterface $status, \ContentTitleCollection $titles, \ContentNameCollection $names, \ContentLinkCollection $links, \ContentOpenInNewTabStatus $opensInNewTabStatus) 

Arguments

$pagePosition

\ContentPositionInterface

Page position

$status

\ContentStatusInterface

Activation status

$titles

\ContentTitleCollection

Localized titles

$names

\ContentNameCollection

Localized names

$links

\ContentLinkCollection

Localized links

$opensInNewTabStatus

\ContentOpenInNewTabStatus

Whether the link is opened in a new tab

Return whether the content is active

isActive() : boolean

Response

boolean

Return whether the content is opened in a new tab

isOpeningInNewTab() : boolean

Response

boolean

Return the localized content names

names() : \ContentNameCollection

Return the content position

position() : string

Response

string

Return the localized content titles

titles() : \ContentTitleCollection

Return the content type

type() : string

Response

string

Properties

Content type

type : string
var

Type(s)

string

Content position

position : string
var

Type(s)

string

Content is active

status : boolean
var

Type(s)

boolean

Localized content titles

titles : \ContentTitleCollection

Localized content names

names : \ContentNameCollection

content is opening in new tab

opensInNewTabStatus : boolean
var

Type(s)

boolean