DatabaseRecordActionType : string
Table of Contents
Cases
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
EDIT
LIST
LAYOUT
PREVIEW
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