LinkPageContent
in package
implements
ContentAttributesInterface, ContentNameAttributeInterface, ContentLinkAttributesInterface, ContentGroupIdInterface
Class LinkPageContent
This class represents a link page content entity
Tags
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
$id
Content group ID
protected
ContentIdentificationInterface
$id
$links
Localized content links
protected
ContentLinkCollection
$links
$names
Localized content names
protected
ContentNameCollection
$names
$opensInNewTabStatus
content is opening in new tab
protected
bool
$opensInNewTabStatus
$position
Content position
protected
string
$position
$status
Content is active
protected
bool
$status
$titles
Localized content titles
protected
ContentTitleCollection
$titles
$type
Content type
protected
string
$type
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 —id()
Returns the content group id if set, otherwise null will be returned.
public
id() : ContentIdentificationInterface|null
Return values
ContentIdentificationInterface|null —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 —links()
Return the localized content links
public
links() : ContentLinkCollection
Return values
ContentLinkCollection —names()
Return the localized content names
public
names() : ContentNameCollection
Return values
ContentNameCollection —position()
Return the content position
public
position() : string
Return values
string —titles()
Return the localized content titles
public
titles() : ContentTitleCollection
Return values
ContentTitleCollection —type()
Return the content type
public
type() : string