GenericEntityEvent implements IEntityEvent
Class GenericEntityEvent
Tags
Interfaces, Classes and Traits
- IEntityEvent
- Interface IEntityEvent
Table of Contents
- $displayName : string
- $eventName : string
- __construct() : mixed
- GenericEntityEvent constructor.
- getDisplayName() : string
- returns a translated name to be presented in the web interface.
- getEventName() : string
- returns the event name that is emitted by the EventDispatcher, e.g.:
Properties
$displayName
private
string
$displayName
$eventName
private
string
$eventName
Methods
__construct()
GenericEntityEvent constructor.
public
__construct(string $displayName, string $eventName) : mixed
Parameters
- $displayName : string
- $eventName : string
Tags
Return values
mixed —getDisplayName()
returns a translated name to be presented in the web interface.
public
getDisplayName() : string
Example: "created" (en), "kreita" (eo)
Tags
Return values
string —getEventName()
returns the event name that is emitted by the EventDispatcher, e.g.:
public
getEventName() : string
Example: "OCA\MyApp\Factory\Cats::postCreated"