Documentation

LinkPageContent
in package
implements ContentAttributesInterface, ContentNameAttributeInterface, ContentLinkAttributesInterface, ContentGroupIdInterface

Class LinkPageContent

This class represents a link page content entity

Tags
category

System

Interfaces, Classes and Traits

ContentAttributesInterface
Interface ContentAttributesInterface
ContentNameAttributeInterface
Interface ContentNameAttributeInterface
ContentLinkAttributesInterface
Interface ContentLinkAttributesInterface
ContentGroupIdInterface
Interface ContentGroupIdInterface

Table of Contents

$id  : ContentIdentificationInterface
Content group ID
$links  : ContentLinkCollection
Localized content links
$names  : ContentNameCollection
Localized content names
$opensInNewTabStatus  : bool
content is opening in new tab
$position  : string
Content position
$status  : bool
Content is active
$titles  : ContentTitleCollection
Localized content titles
$type  : string
Content type
__construct()  : mixed
LinkPageContent constructor
id()  : ContentIdentificationInterface|null
Returns the content group id if set, otherwise null will be returned.
isActive()  : bool
Return whether the content is active
isOpeningInNewTab()  : bool
Return whether the content is opened in a new tab
links()  : ContentLinkCollection
Return the localized content links
names()  : ContentNameCollection
Return the localized content names
position()  : string
Return the content position
titles()  : ContentTitleCollection
Return the localized content titles
type()  : string
Return the content type

Properties

$opensInNewTabStatus

content is opening in new tab

protected bool $opensInNewTabStatus

Methods

__construct()

LinkPageContent constructor

public __construct(ContentPositionInterface $pagePosition, ContentStatusInterface $status, ContentTitleCollection $titles, ContentNameCollection $names, ContentLinkCollection $links, ContentOpenInNewTabStatus $opensInNewTabStatus[, ContentIdentificationInterface|null $id = null ]) : mixed
Parameters
$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

$id : ContentIdentificationInterface|null = null

Optional content group ID

Return values
mixed

isActive()

Return whether the content is active

public isActive() : bool
Return values
bool

isOpeningInNewTab()

Return whether the content is opened in a new tab

public isOpeningInNewTab() : bool
Return values
bool

position()

Return the content position

public position() : string
Return values
string

Search results