Copied!

AbstractRouteBasedTab

AbstractRouteBasedTab.php : 19
Extends AbstractTab

Base class for Tabs based on a route.

Properties

protected $translator

AbstractTab.php : 24
protected TranslatorInterface $translator

protected $twig

AbstractTab.php : 21
protected Environment $twig

protected $urlGenerator

AbstractRouteBasedTab.php : 22
protected UrlGeneratorInterface $urlGenerator

Methods

public__construct()

AbstractRouteBasedTab.php : 27
public __construct(Environment $twig, TranslatorInterface $translator, UrlGeneratorInterface $urlGenerator, HttpKernelRuntime $httpKernelRuntime)

Parameters

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

publicgetRouteName()

AbstractRouteBasedTab.php : 54

Returns route name used to generate path to the resource.

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

Parameters

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

Return values

string

publicgetRouteParameters()

AbstractRouteBasedTab.php : 63

Returns parameters array required to generate path using the router.

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

Parameters

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

Return values

array<string, mixed>

publicrenderView()

AbstractRouteBasedTab.php : 39

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