TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Workspaces\Hook\BackendUtilityHook Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Hook\BackendUtilityHook:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 preProcess (&$pageUid, $backPath, $rootLine, $anchorSection, &$viewScript, $additionalGetVars, $switchFocus)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 getWorkspaceService ()
 

Detailed Description

Befunc service

Definition at line 22 of file BackendUtilityHook.php.

Member Function Documentation

◆ getInstance()

static TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::getInstance ( )
static

Gets a singleton instance of this object.

Returns

Definition at line 29 of file BackendUtilityHook.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ getWorkspaceService()

TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::getWorkspaceService ( )
protected

◆ preProcess()

TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::preProcess ( $pageUid,
  $backPath,
  $rootLine,
  $anchorSection,
$viewScript,
  $additionalGetVars,
  $switchFocus 
)

Hooks into the ::viewOnClick and redirects to the workspace preview only if we're in a workspace and if the frontend-preview is disabled.

Parameters
int$pageUid
string$backPath
array$rootLine
string$anchorSection
string$viewScript
string$additionalGetVars
bool$switchFocus
Returns
void

Definition at line 47 of file BackendUtilityHook.php.

References $GLOBALS, and TYPO3\CMS\Workspaces\Hook\BackendUtilityHook\getWorkspaceService().