Copied!

AbstractEventDispatchingTab

AbstractEventDispatchingTab.php : 22
Extends AbstractTab

Base class representing Tab using EventDispatcher for extensibility.

It extends AbstractTab by adding Event Dispatching before rendering view.

Properties

protected $eventDispatcher

AbstractEventDispatchingTab.php : 25
protected EventDispatcherInterface $eventDispatcher

protected $translator

AbstractTab.php : 24
protected TranslatorInterface $translator

protected $twig

AbstractTab.php : 21
protected Environment $twig

Methods

public__construct()

AbstractEventDispatchingTab.php : 27
public __construct(Environment $twig, TranslatorInterface $translator, EventDispatcherInterface $eventDispatcher)

Parameters

Name Type Default value Description
$twig Environment - -
$translator TranslatorInterface - -
$eventDispatcher EventDispatcherInterface - -

publicgetTemplate()

AbstractEventDispatchingTab.php : 52
public abstract getTemplate() : string

Return values

string

publicgetTemplateParameters()

AbstractEventDispatchingTab.php : 59
public abstract getTemplateParameters([array<string, mixed> $contextParameters = [] ]) : array<string, mixed>

Parameters

Name Type Default value Description
$contextParameters array<string, mixed> [] -

Return values

array<string, mixed>

publicrenderView()

AbstractEventDispatchingTab.php : 37

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