WidgetContext

Read onlyYes
FinalYes

Widget context containing all necessary data for widget rendering.

This readonly value object encapsulates all the context information needed by widgets during rendering, including:

  • Widget instance identifier and raw configuration data
  • Widget configuration and settings
  • Current HTTP request context

The widget context is passed to widgets implementing WidgetRendererInterface and provides a clean interface for accessing widget-specific data and settings.

Table of Contents

Properties

$configuration  : WidgetConfigurationInterface
$identifier  : string
$rawData  : array<string|int, mixed>
$request  : ServerRequestInterface
$settings  : SettingsInterface

Methods

__construct()  : mixed

Properties

$identifier read-only

public string $identifier

$rawData read-only

public array<string|int, mixed> $rawData

$request read-only

public ServerRequestInterface $request

Methods


        
On this page

Search results