‪TYPO3CMS  9.5
TYPO3\CMS\Workspaces\Hook\BackendUtilityHook Class Reference

Public Member Functions

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

Detailed Description

Befunc service

This is a specific hook implementation and is not considered part of the Public TYPO3 API.

Definition at line 29 of file BackendUtilityHook.php.

Member Function Documentation

◆ makeEditForm_accessCheck()

bool TYPO3\CMS\Workspaces\Hook\BackendUtilityHook::makeEditForm_accessCheck (   $params)

Use that hook to show an info message in case someone starts editing a staged element

Parameters
array$params
Returns
‪bool

Definition at line 58 of file BackendUtilityHook.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Core\Messaging\AbstractMessage\INFO, and TYPO3\CMS\Workspaces\Service\StagesService\STAGE_EDIT_ID.

◆ preProcess()

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

Hooks into the \TYPO3\CMS\Backend\Utility\BackendUtility::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

Definition at line 43 of file BackendUtilityHook.php.

References $GLOBALS.