FieldInterface

Interface for representing a field in a form.

  • Full name: \EnvisionPortal\FieldInterface

Methods

__construct

FieldInterface constructor.

public __construct(array $field, string $value, string $type): mixed

Parameters:

Parameter Type Description
$field array An array representing the field properties.
$value string The current value of the field.
$type string The type of the field.

__toString

Convert the field to its HTML representation.

public __toString(): string

Return Value:

The HTML representation of the field.

Automatically generated on 2024-05-12