Copied!

MapFieldEvent

MapFieldEvent.php : 13
Final
Extends Event

Event is the base class for classes containing event data.

This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

You can call the method stopPropagation() to abort the execution of further listeners in your event listener.

Methods

public__construct()

MapFieldEvent.php : 28
public __construct(string $identifier, string $addressType[, string|null $country = null ])

Parameters

Name Type Default value Description
$identifier string - -
$addressType string - -
$country string|null null -

publicgetAddressType()

MapFieldEvent.php : 43
public getAddressType() : string

Return values

string

publicgetCountry()

MapFieldEvent.php : 48
public getCountry() : string|null

Return values

string|null

publicgetIdentifier()

MapFieldEvent.php : 38
public getIdentifier() : string

Return values

string

publicgetLabel()

MapFieldEvent.php : 66
public getLabel() : bool|string|null

Return values

bool|string|null

publicgetOptions()

MapFieldEvent.php : 79
public getOptions() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetType()

MapFieldEvent.php : 53
public getType() : string|null

Return values

string|null

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetLabel()

MapFieldEvent.php : 74
public setLabel(bool|string|null $label) : void

Parameters

Name Type Default value Description
$label bool|string|null - -

publicsetOption()

MapFieldEvent.php : 89
public setOption(string $option, mixed $value) : void

Parameters

Name Type Default value Description
$option string - -
$value mixed - -

publicsetOptions()

MapFieldEvent.php : 84
public setOptions(array<string|int, mixed> $options) : void

Parameters

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

publicsetType()

MapFieldEvent.php : 58
public setType(string $type) : void

Parameters

Name Type Default value Description
$type string - -

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().