Property | Type | Description | |
---|---|---|---|
$contents | array | Cache of the current contents stage. |
Property | Type | Description | |
---|---|---|---|
$types |
Method | Description | |
---|---|---|
__construct ( |
||
addType ( string $type, |
||
getContentTypes ( ) : |
||
getSlotContents ( integer $nodeId, integer $slotId ) : |
||
getTypeRenderer ( string $type ) : |
||
renderContent ( Jarves\Model\ContentInterface $content, array $parameters = [] ) : string | Build HTML for given content. | |
renderContents ( |
Renders all Content elements into html. | |
renderSingleSlot ( integer $nodeId = null, integer $slotId = 1, array $params = [] ) : string | ||
renderSlot ( integer $nodeId = null, integer $slotId = 1, array $params = [] ) : string | ||
renderSlotContents ( array $contents, array $slotProperties ) : string | null | Build HTML for given contents, used in {% contents 1 %}. |
Method | Description | |
---|---|---|
filterContentsForAccess ( |
Filters $contents and returns only $content items which have valid access. (is visible, accessible by current user etc) |
public __construct ( |
||
$jarves | ||
$stopwatch | ||
$editMode | ||
$cacher | ||
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$pageStack | ||
$templating | Symfony\Component\Templating\EngineInterface |
protected filterContentsForAccess ( |
||
$contents | ||
return | array |
public getContentTypes ( ) : |
||
return |
public getSlotContents ( integer $nodeId, integer $slotId ) : |
||
$nodeId | integer | |
$slotId | integer | |
return |
public getTypeRenderer ( string $type ) : |
||
$type | string | |
return |
public renderContent ( Jarves\Model\ContentInterface $content, array $parameters = [] ) : string | ||
$content | Jarves\Model\ContentInterface | |
$parameters | array | |
return | string |
public renderContents ( |
||
$contents | ||
return | string | generated html |