LinkPageContent
in package
implements
ContentInterface, ContentAttributesInterface, ContentNameAttributeInterface, ContentLinkAttributesInterface, ContentGroupIdInterface, ContentDeleteInterface, ContentSortOrderInterface
Class LinkPageContent
This class represents a link page content entity
Tags
Interfaces, Classes and Traits
- ContentInterface
- ContentAttributesInterface
- Interface ContentAttributesInterface
- ContentNameAttributeInterface
- Interface ContentNameAttributeInterface
- ContentLinkAttributesInterface
- Interface ContentLinkAttributesInterface
- ContentGroupIdInterface
- Interface ContentGroupIdInterface
- ContentDeleteInterface
- ContentSortOrderInterface
Table of Contents
- $deletable : bool
- $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
- $sortOrder : int
- Content sort order
- $status : ContentStatusCollection
- 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.
- isDeletable() : int|null
- Returns whether the content is deletable
- links() : ContentLinkCollection
- Return the localized content links
- names() : ContentNameCollection
- Return the localized content names
- openInNewTab() : ContentOpenInNewTabStatusCollection
- Return localized content is opened in a new tab
- order() : int
- Returns the content group id if set, otherwise null will be returned.
- position() : string
- Return the content position
- status() : ContentStatusCollection
- Return whether the content is active
- titles() : ContentTitleCollection
- Return the localized content titles
- type() : string
- Return the content type
Properties
$deletable
protected
bool
$deletable
$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
$sortOrder
Content sort order
protected
int
$sortOrder
$status
Content is active
protected
ContentStatusCollection
$status
$titles
Localized content titles
protected
ContentTitleCollection
$titles
$type
Content type
protected
string
$type
Methods
__construct()
LinkPageContent constructor
public
__construct(ContentPositionInterface $pagePosition, ContentStatusCollection $status, ContentTitleCollection $titles, ContentNameCollection $names, ContentLinkCollection $links, ContentOpenInNewTabStatusCollection $opensInNewTabStatus[, ContentIdentificationInterface|null $id = null ][, ContentSortOrderInterface|null $sortOrder = null ][, ContentDeleteInterface|null $deletable = null ]) : mixed
Parameters
- $pagePosition : ContentPositionInterface
-
Page position
- $status : ContentStatusCollection
-
Localized status
- $titles : ContentTitleCollection
-
Localized titles
- $names : ContentNameCollection
-
Localized names
- $links : ContentLinkCollection
-
Localized links
- $opensInNewTabStatus : ContentOpenInNewTabStatusCollection
-
Whether the link is opened in a new tab
- $id : ContentIdentificationInterface|null = null
-
Optional content group ID
- $sortOrder : ContentSortOrderInterface|null = null
- $deletable : ContentDeleteInterface|null = null
Return values
mixed —id()
Returns the content group id if set, otherwise null will be returned.
public
id() : ContentIdentificationInterface|null
Return values
ContentIdentificationInterface|null —isDeletable()
Returns whether the content is deletable
public
isDeletable() : int|null
Return values
int|null —links()
Return the localized content links
public
links() : ContentLinkCollection
Return values
ContentLinkCollection —names()
Return the localized content names
public
names() : ContentNameCollection
Return values
ContentNameCollection —openInNewTab()
Return localized content is opened in a new tab
public
openInNewTab() : ContentOpenInNewTabStatusCollection
Return values
ContentOpenInNewTabStatusCollection —order()
Returns the content group id if set, otherwise null will be returned.
public
order() : int
Return values
int —position()
Return the content position
public
position() : string
Return values
string —status()
Return whether the content is active
public
status() : ContentStatusCollection
Return values
ContentStatusCollection —titles()
Return the localized content titles
public
titles() : ContentTitleCollection
Return values
ContentTitleCollection —type()
Return the content type
public
type() : string