public __construct ( string $name, string $type = 'string', null | string $nestedPath = null, array $fieldConfig = [] ) | ||
$name | string | Field name. |
$type | string | Field type. |
$nestedPath | null | string | Path for nested fields. null by default and for non-nested fields. |
$fieldConfig | array | Field configuration (see self::$config declaration for available values and default values). |