Copied!

AbstractEventDispatchingTab

AbstractEventDispatchingTab.php : 22
Abstract
Extends AbstractTab

Base class representing Tab using EventDispatcher for extensibility.

It extends AbstractTab by adding Event Dispatching before rendering view.

Properties

protected $eventDispatcher read-only

AbstractEventDispatchingTab.php : 27
protected EventDispatcherInterface $eventDispatcher

protected $translator

AbstractTab.php : 22
protected TranslatorInterface $translator

protected $twig

AbstractTab.php : 21
protected Environment $twig

Methods

public__construct()

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

Parameters

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

publicgetTemplate()

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

Return values

string

publicgetTemplateParameters()

AbstractEventDispatchingTab.php : 54
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 : 32
public renderView(array<string|int, mixed> $parameters) : string

Parameters

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

Return values

string