This field type is used for fallback and testing purposes.

NameInternal nameExpected input type
Nullvariablemixed

Description

As integration with Legacy Stack requires that all FieldTypes are also also handled on 5.x stack side, Null FieldType is provided as a dummy for legacy FieldTypes that are not really implemented on 5.x side.

Null FieldType will accept anything provided as a value, but will not store anything to the database, nor will it read any data from the database.

This FieldType does not have its own fixed internal name. Its identifier is instead configured as is needed by passing it as an argument to the constructor.

Following example shows how Null FieldType is used to configure dummy implementations for ezcomcomments and ezpaex legacy datatypes:

parameters:
    ezpublish.fieldType.eznull.class: eZ\Publish\Core\FieldType\Null\Type

services:
    ezpublish.fieldType.ezcomcomments:
        class: %ezpublish.fieldType.eznull.class%
        parent: ezpublish.fieldType
        arguments: [ "ezcomcomments" ]
        tags:
            - {name: ezpublish.fieldType, alias: ezcomcomments}
    ezpublish.fieldType.ezpaex:
        class: %ezpublish.fieldType.eznull.class%
        parent: ezpublish.fieldType
        arguments: [ "ezpaex" ]
        tags:
            - {name: ezpublish.fieldType, alias: ezpaex}