HookBase
in package
AbstractYes
Base for hook implementations.
Tags
Table of Contents
Methods
- validateParams() : bool
- Ensure a set of parameters has all the required fields.
Methods
validateParams()
Ensure a set of parameters has all the required fields.
protected
static validateParams(AbstractEvent $event, array<string|int, mixed> $required_params) : bool
Parameters
- $event : AbstractEvent
-
Event to check
- $required_params : array<string|int, mixed>
-
Array of required parameter keys
Return values
bool —Whether $params contains all of $required_params