‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Aspect\PreviewAspect Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Aspect\PreviewAspect:
TYPO3\CMS\Core\Context\AspectInterface

Public Member Functions

 __construct (bool $isPreview=false)
 
 isPreview ()
 
mixed get (string $name)
 

Private Attributes

bool $isPreview
 

Detailed Description

The aspect contains information on whether TYPO3 is currently in preview mode

Allowed properties:

  • ‪isPreview

Definition at line 29 of file PreviewAspect.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Aspect\PreviewAspect::__construct ( bool  $isPreview = false)

Member Function Documentation

◆ get()

mixed TYPO3\CMS\Frontend\Aspect\PreviewAspect::get ( string  $name)

Get a property from aspect

Returns
‪mixed
Exceptions
AspectPropertyNotFoundException

Implements TYPO3\CMS\Core\Context\AspectInterface.

Definition at line 51 of file PreviewAspect.php.

References TYPO3\CMS\Frontend\Aspect\PreviewAspect\$isPreview.

◆ isPreview()

TYPO3\CMS\Frontend\Aspect\PreviewAspect::isPreview ( )

Member Data Documentation

◆ $isPreview

bool TYPO3\CMS\Frontend\Aspect\PreviewAspect::$isPreview
private