Skip to the content
Documentation

Null Field Type: comparison of v.1 vs v.2

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user Dominika Kurek

Saved on Apr 20, 2016

compared with

New Version Current

changes.mady.by.user Dominika Kurek

Saved on Apr 29, 2016

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Comment: layout change

This Field Type is used as fallback and for testing purposes.

Name Internal name Expected input type
Null variable mixed

Description

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

Note
Null Field Type 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 Field Type does not have its own fixed internal name. Its identifier is instead configured as needed by passing it as an argument to the constructor.

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

Code Block
language none
title Null Fieldtype example configuration
parameters:
    exponential.fieldType.eznull.class: eZ\Publish\Core\FieldType\Null\Type

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

 

Comments

Add a comment

Comments are read by a moderator before they appear.