ContentAreaCollection implements ContainerInterface, IteratorAggregate
Read onlyYes
FinalYes
Collection of content areas
Tags
Table of Contents
Interfaces
- ContainerInterface
- IteratorAggregate
Methods
- __construct() : mixed
- get() : ContentArea
- getGroupedRecords() : array<string|int, mixed>
- getIterator() : Traversable<string, ContentArea>
- has() : bool
- withRequest() : self
- withUpdatedRecords() : self
Methods
__construct()
public
__construct(array<string|int, mixed> $contentAreas[, ServerRequestInterface|null $request = null ]) : mixed
Parameters
- $contentAreas : array<string|int, mixed>
- $request : ServerRequestInterface|null = null
get()
public
get(string $id) : ContentArea
Parameters
- $id : string
Return values
ContentAreagetGroupedRecords()
public
getGroupedRecords(ServerRequestInterface $request) : array<string|int, mixed>
Parameters
- $request : ServerRequestInterface
Only for AfterContentHasBeenFetchedEvent
Return values
array<string|int, mixed>getIterator()
public
getIterator() : Traversable<string, ContentArea>
Return values
Traversable<string, ContentArea>has()
public
has(string $id) : bool
Parameters
- $id : string
Return values
boolwithRequest()
public
withRequest(ServerRequestInterface $request) : self
Parameters
- $request : ServerRequestInterface
Return values
selfwithUpdatedRecords()
public
withUpdatedRecords(array<string|int, mixed> $groupedRecords) : self
Parameters
- $groupedRecords : array<string|int, mixed>
Only for AfterContentHasBeenFetchedEvent