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(array<string|int, mixed> $params, array<string|int, mixed> $required_params) : bool
Parameters
- $params : array<string|int, mixed>
-
Array of parameters to check
- $required_params : array<string|int, mixed>
-
Array of required parameter keys
Return values
bool —Whether $params contains all of $required_params