Skip to content

Latest commit

 

History

History
176 lines (90 loc) · 3.88 KB

RuntimeHelperReference.rst

File metadata and controls

176 lines (90 loc) · 3.88 KB

Fusion Form Helper Reference

This reference was automatically generated from code on 2021-03-22

NeosFusionFormRuntimeHelperArrayOfSchemaDefinition

Implemented in: Neos\Fusion\Form\Runtime\Helper\ArrayOfSchemaDefinition

NeosFusionFormRuntimeHelperArrayOfSchemaDefinition.isRequired()

Add a NotEmpty Validator

Return ($this)

NeosFusionFormRuntimeHelperArrayOfSchemaDefinition.typeConverterOption(className, optionName, optionValue)

Add a typeConverter option to the schema

  • className (string) The typeConverter className to set options for
  • optionName (string) The option name
  • optionValue (mixed) The value to set

Return ($this)

NeosFusionFormRuntimeHelperArrayOfSchemaDefinition.validator(type, options)

Add a validator to the schema

  • type (string) The validaor indentifier or className
  • options (mixed[]|null, optional) The options to set for the validator

Return ($this)

NeosFusionFormRuntimeHelperSchemaDefinition

Implemented in: Neos\Fusion\Form\Runtime\Helper\SchemaDefinition

NeosFusionFormRuntimeHelperSchemaDefinition.isRequired()

Add a NotEmpty Validator

Return ($this)

NeosFusionFormRuntimeHelperSchemaDefinition.typeConverterOption(className, optionName, optionValue)

Add a typeConverter option to the schema

  • className (string) The typeConverter className to set options for
  • optionName (string) The option name
  • optionValue (mixed) The value to set

Return ($this)

NeosFusionFormRuntimeHelperSchemaDefinition.validator(type, options)

Add a validator to the schema

  • type (string) The validaor indentifier or className
  • options (mixed[]|null, optional) The options to set for the validator

Return ($this)

Schema

Implemented in: Neos\Fusion\Form\Runtime\Helper\SchemaHelper

Schema.array()

Create an array schema.

Return (SchemaInterface)

Schema.arrayOf(schema)

Create a date schema for an array by providing a schema for all items

  • schema (SchemaInterface) The schema for the items of the array

Return (SchemaInterface)

Schema.boolean()

Create a boolean schema

Return (SchemaInterface)

Schema.date(format)

Create a date schema. The php value will be DateTime

  • format (string, optional) The format default is "Y-m-d

Return (SchemaInterface)

Schema.float()

Create a float schema

Return (SchemaInterface)

Schema.forType(type)

Create a schema for the given type

  • type (string) The type or className that is expected

Return (SchemaInterface)

Schema.integer()

Create a integer schema

Return (SchemaInterface)

Schema.resource(collection)

Create a resource schema

  • collection (string, optional) The collection new resources are put into

Return (SchemaInterface)

Schema.string()

Create a string schema

Return (SchemaInterface)