eZ Systems Website
  Editor documentation

  Developer documentation

  Back to the top

The documentation is moving!

We're moving our developer docs to Github and a new site.
The migration is still in progress, so please contact us in #documentation-contrib on eZ Community Slack if you have any questions or feedback.

This space will not be updated from now on except for critical fixes.

Skip to end of metadata
Go to start of metadata

This Field Type represents an integer value.

NameInternal nameExpected input


This Field Type stores numeric values which will be provided as integers.

PHP API Field Type 

Input expectations



Value object


The Value class of this field type contains the following properties:

$valueintThis property will be used to store the value provided as an integer.
Value object content example

The Integer\Value constructor will initialize a new Value object with the value provided. It expects a numeric, integer value.

Constructor example

Hash format

Hash value of this Field Type is simply integer value as a string.



String representation

String representation of the Field Type's value will return the integer value as a string.




This Field Type supports IntegerValueValidator, defining maximal and minimal float value:

NameTypeDefault valueDescription
minIntegerValueint0This setting defines the minimum value this FieldType will allow as input.
maxIntegerValueintfalse / V1.5.2, V1.6.1 null
This setting defines the maximum value this FieldType will allow as input.
Example of validator configuration in PHP


This Field Type does not support settings.