CoreEventAware
Returns the most suitable event class for a Joomla core event name
since |
4.2.0 |
---|---|
package |
Joomla CMS |
Methods
getEventClassByEventName
Get the concrete event class name for the given event name.
getEventClassByEventName( eventName) :
static
This method falls back to the generic Joomla\Event\Event class if the event name is unknown to this trait.
since |
4.2.0 |
---|
Arguments
- eventName
string
The event name
Response
string
The event class name
Properties
eventNameToConcreteClass
Maps event names to concrete Event classes.
static
This is only for events with invariable names. Events with variable names are handled with PHP logic in the getEventClassByEventName class.
since |
4.2.0 |
---|
Type(s)
array<string|int, mixed>