InfoElementContentBuilder
in package
implements
BuilderInterface, InfoElementContentBuilderInterface
Class InfoElementContentBuilder
This class represents an info element content builder
Tags
Interfaces, Classes and Traits
- BuilderInterface
- Interface BuilderInterface
- InfoElementContentBuilderInterface
- Interface InfoElementContentBuilderInterface
Table of Contents
- $headings : ContentHeadingCollection
- Localized content headings
- $id : int|null
- Content group id
- $position : PagePosition
- Content position
- $sortOrder : ContentSortOrder
- Sort order
- $status : ContentStatusCollection
- Content status
- $texts : ContentTextCollection
- Localized content texts
- $titles : ContentTitleCollection
- Localized content titles
- build() : InfoElementContent
- Return the created InfoElementContent instance
- create() : InfoElementContentBuilder
- Return new instance of the builder
- inPosition() : InfoElementContentBuilder
- Set the page position
- usingHeadings() : InfoElementContentBuilder
- Set the localized content headings
- usingId() : InfoElementContentBuilder
- Set the content group id
- usingSortOrder() : $this
- Set the sort order
- usingStatus() : InfoElementContentBuilder
- Set the activation status
- usingTexts() : InfoElementContentBuilder
- Set the localized content texts
- usingTitles() : InfoElementContentBuilder
- Set the localized content titles
Properties
$headings
Localized content headings
protected
ContentHeadingCollection
$headings
$id
Content group id
protected
int|null
$id
=
ull
$position
Content position
protected
PagePosition
$position
$sortOrder
Sort order
protected
ContentSortOrder
$sortOrder
$status
Content status
protected
ContentStatusCollection
$status
$texts
Localized content texts
protected
ContentTextCollection
$texts
$titles
Localized content titles
protected
ContentTitleCollection
$titles
Methods
build()
Return the created InfoElementContent instance
public
build() : InfoElementContent
Tags
Return values
InfoElementContent —Info element content entity object
create()
Return new instance of the builder
public
static create() : InfoElementContentBuilder
Return values
InfoElementContentBuilder —New instance
inPosition()
Set the page position
public
inPosition(ElementPosition $position) : InfoElementContentBuilder
Parameters
- $position : ElementPosition
-
Element position
Return values
InfoElementContentBuilder —Same instance
usingHeadings()
Set the localized content headings
public
usingHeadings(ContentHeadingCollection $headings) : InfoElementContentBuilder
Parameters
- $headings : ContentHeadingCollection
-
Localized headings
Return values
InfoElementContentBuilder —Same instance
usingId()
Set the content group id
public
usingId([ContentIdentificationInterface $id = null ]) : InfoElementContentBuilder
Parameters
- $id : ContentIdentificationInterface = null
Return values
InfoElementContentBuilder —Same instance
usingSortOrder()
Set the sort order
public
usingSortOrder(ContentSortOrderInterface $sortOrder) : $this
Parameters
- $sortOrder : ContentSortOrderInterface
Return values
$this —usingStatus()
Set the activation status
public
usingStatus(ContentStatusCollection $status) : InfoElementContentBuilder
Parameters
- $status : ContentStatusCollection
-
Activation status
Return values
InfoElementContentBuilder —Same instance
usingTexts()
Set the localized content texts
public
usingTexts(ContentTextCollection $texts) : InfoElementContentBuilder
Parameters
- $texts : ContentTextCollection
-
Localized texts
Return values
InfoElementContentBuilder —Same instance
usingTitles()
Set the localized content titles
public
usingTitles(ContentTitleCollection $titles) : InfoElementContentBuilder
Parameters
- $titles : ContentTitleCollection
-
Localized titles
Return values
InfoElementContentBuilder —Same instance