Copied!

CustomerGroupCanBeDeletedEvent

CustomerGroupCanBeDeletedEvent.php : 14
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()

CustomerGroupCanBeDeletedEvent.php : 22
public __construct(CustomerGroupInterface $customerGroup[, bool $canBeDeleted = true ])

Parameters

Name Type Default value Description
$customerGroup CustomerGroupInterface - -
$canBeDeleted bool true -

publiccanBeDeleted()

CustomerGroupCanBeDeletedEvent.php : 33
public canBeDeleted() : bool

Return values

bool

publicgetCustomerGroup()

CustomerGroupCanBeDeletedEvent.php : 28
public getCustomerGroup() : CustomerGroupInterface

Return values

CustomerGroupInterface

publicgetReason()

CustomerGroupCanBeDeletedEvent.php : 38
public getReason() : string

Return values

string

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicpreventDelete()

CustomerGroupCanBeDeletedEvent.php : 43
public preventDelete(string $reason) : void

Parameters

Name Type Default value Description
$reason 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().