Block
Provides an XHP node of content.
Instance Methods
| Returns | Signature and Description |
|---|---|
Awaitable<XHPRoot> | compose()Compose the content. |
int | getOrder()Gets the display order of this block in its region. |
string | Gets the region in which this block should appear. |
Method Details
compose
abstract public function
compose(?ServerRequestInterface $request = null)Compose the content.
| Name | Type | Description |
|---|---|---|
$request | ?ServerRequestInterface | The server request |
| Type | Description |
|---|---|
Awaitable<XHPRoot> | The XHP node |
getOrder
abstract public function
getOrder()Gets the display order of this block in its region.
| Type | Description |
|---|---|
int | The display order |
getRegion
abstract public function
getRegion()Gets the region in which this block should appear.
| Type | Description |
|---|---|
string | The region |