PatternPluginManagerTrait
Trait providing common logic between FormElementManager implementations.
Trait does not define properties, as the properties common between the two versions are originally defined in their parent class, causing a resolution conflict.
Table of Contents
- build() : mixed
- Override build to inject options as PatternOptions instance.
- validate() : mixed
- Validate the plugin is of the expected type (v3).
- validatePlugin() : mixed
- Validate the plugin is of the expected type (v2).
Methods
build()
Override build to inject options as PatternOptions instance.
public
build(mixed $plugin[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $plugin : mixed
- $options : array<string|int, mixed> = null
Return values
mixed —validate()
Validate the plugin is of the expected type (v3).
public
validate(mixed $instance) : mixed
Validates against $instanceOf
.
Parameters
- $instance : mixed
Tags
Return values
mixed —validatePlugin()
Validate the plugin is of the expected type (v2).
public
validatePlugin(mixed $plugin) : mixed
Proxies to validate()
.
Parameters
- $plugin : mixed