PHP Class Neos\Neos\ViewHelpers\Rendering\InPreviewModeViewHelper
= Examples =
Given we are currently in a preview mode:
Shown in preview.
Shown elsewhere (edit mode or not in backend).
Given we are in the preview mode named "desktop"
Shown just for print preview mode.
Shown in all other cases.
Datei anzeigen
Open project: neos/neos-development-collection
Public Methods
Method |
Description |
|
render ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $mode = null ) : boolean |
|
|
Method Details
public render ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $mode = null ) : boolean |
$node |
Neos\ContentRepository\Domain\Model\NodeInterface |
Optional Node to use context from |
$mode |
string |
Optional rendering mode name to check if this specific mode is active |
return |
boolean |
|