Copied!

AbstractControllerBasedTab

AbstractControllerBasedTab.php : 19
Extends AbstractTab

Base class for Tabs based on a controller action.

Properties

protected $httpKernelRuntime

AbstractControllerBasedTab.php : 22
protected HttpKernelRuntime $httpKernelRuntime

protected $translator

AbstractTab.php : 24
protected TranslatorInterface $translator

protected $twig

AbstractTab.php : 21
protected Environment $twig

Methods

public__construct()

AbstractControllerBasedTab.php : 24
public __construct(Environment $twig, TranslatorInterface $translator, HttpKernelRuntime $httpKernelRuntime)

Parameters

Name Type Default value Description
$twig Environment - -
$translator TranslatorInterface - -
$httpKernelRuntime HttpKernelRuntime - -

publicgetControllerReference()

AbstractControllerBasedTab.php : 44

Returns ControllerReference used to render the tab.

public abstract getControllerReference(array<string, mixed> $parameters) : ControllerReference

Parameters

Name Type Default value Description
$parameters array<string, mixed> - -

Return values

ControllerReference

publicrenderView()

AbstractControllerBasedTab.php : 34

Returns HTML body of the tab.

public renderView(array<string|int, mixed> $parameters) : string

Parameters

Name Type Default value Description
$parameters array<string|int, mixed> - -

Return values

string