DatabaseRecordActionType : string

Table of Contents

Cases

EDIT  = 'edit'
LAYOUT  = 'layout'
LIST  = 'list'
PREVIEW  = 'preview'

Methods

fromUserForTable()  : DatabaseRecordActionType
Resolve the default action identifier from TSconfig: 1. Table-specific default (options.liveSearch.actions.<TABLE>.default) 2. Global default (options.liveSearch.actions.default) 3. Fallback to EDIT (for pages to LAYOUT) The value is then converted to a DatabaseRecordActionType enum; if conversion fails, fallback is used as a safe default.

Cases

Methods

fromUserForTable()

Resolve the default action identifier from TSconfig: 1. Table-specific default (options.liveSearch.actions.<TABLE>.default) 2. Global default (options.liveSearch.actions.default) 3. Fallback to EDIT (for pages to LAYOUT) The value is then converted to a DatabaseRecordActionType enum; if conversion fails, fallback is used as a safe default.

public static fromUserForTable(BackendUserAuthentication $backendUser, string $table) : DatabaseRecordActionType
Parameters
$backendUser : BackendUserAuthentication

The current backend user

$table : string

The table name to find the default action for

Return values
DatabaseRecordActionType

NULL if file is missing or deleted, the generated url otherwise


        
On this page

Search results