Documentation

AdminContext
in package

FinalYes

A context object that stores all the state and config of the current admin request.

Tags
author

Javier Eguiluz javier.eguiluz@gmail.com

Table of Contents

Properties

$assetDto  : AssetsDto
$crudControllers  : CrudControllerRegistry
$crudDto  : CrudDto|null
$dashboardControllerInstance  : DashboardControllerInterface
$dashboardDto  : DashboardDto
$entityDto  : EntityDto|null
$i18nDto  : I18nDto
$mainMenuDto  : MainMenuDto|null
$menuFactory  : MenuFactory
$request  : Request
$searchDto  : SearchDto|null
$templateRegistry  : TemplateRegistry
$user  : UserInterface|null
$userMenuDto  : UserMenuDto|null

Methods

__construct()  : mixed
getAbsoluteUrls()  : bool
getAssets()  : AssetsDto
getCrud()  : CrudDto|null
getCrudControllers()  : CrudControllerRegistry
getDashboardContentWidth()  : string
getDashboardControllerFqcn()  : string
getDashboardFaviconPath()  : string
getDashboardHasDarkModeEnabled()  : bool
getDashboardLocales()  : array<string|int, LocaleDto>
getDashboardRouteName()  : string
getDashboardSidebarWidth()  : string
getDashboardTitle()  : string
getEntity()  : EntityDto
getI18n()  : I18nDto
getMainMenu()  : MainMenuDto
getReferrer()  : string|null
getRequest()  : Request
getSearch()  : SearchDto|null
getSignedUrls()  : bool
getTemplatePath()  : string
getUser()  : UserInterface|null
getUserMenu()  : UserMenuDto

Properties

Methods

__construct()

public __construct(Request $request, UserInterface|null $user, I18nDto $i18nDto, CrudControllerRegistry $crudControllers, DashboardDto $dashboardDto, DashboardControllerInterface $dashboardController, AssetsDto $assetDto, CrudDto|null $crudDto, EntityDto|null $entityDto, SearchDto|null $searchDto, MenuFactory $menuFactory, TemplateRegistry $templateRegistry) : mixed
Parameters
$request : Request
$user : UserInterface|null
$i18nDto : I18nDto
$crudControllers : CrudControllerRegistry
$dashboardDto : DashboardDto
$dashboardController : DashboardControllerInterface
$assetDto : AssetsDto
$crudDto : CrudDto|null
$entityDto : EntityDto|null
$searchDto : SearchDto|null
$menuFactory : MenuFactory
$templateRegistry : TemplateRegistry

getAbsoluteUrls()

public getAbsoluteUrls() : bool
Return values
bool

getDashboardContentWidth()

public getDashboardContentWidth() : string
Return values
string

getDashboardControllerFqcn()

public getDashboardControllerFqcn() : string
Return values
string

getDashboardFaviconPath()

public getDashboardFaviconPath() : string
Return values
string

getDashboardHasDarkModeEnabled()

public getDashboardHasDarkModeEnabled() : bool
Return values
bool

getDashboardRouteName()

public getDashboardRouteName() : string
Return values
string

getDashboardSidebarWidth()

public getDashboardSidebarWidth() : string
Return values
string

getDashboardTitle()

public getDashboardTitle() : string
Return values
string

getReferrer()

public getReferrer() : string|null
Return values
string|null

getSignedUrls()

public getSignedUrls() : bool
Return values
bool

getTemplatePath()

public getTemplatePath(string $templateName) : string
Parameters
$templateName : string
Return values
string

        
On this page

Search results