Remove title property from markup type element

Created on 19 January 2024, 11 months ago
Updated 15 April 2024, 8 months ago

Problem/Motivation

The migration source plugin for D7 (src/Plugin/migrate/source/d7/D7Webform.php) assigns a #title property to elements of the "markup" type.

In D8/9/10 Webform the markup type is called "processed_text". This type does not have a title property, but webform is able to render the migrated data as a field label and create a field for it.

This is confusing because the field cannot be disabled. This is reported in #3262330: Form Display options not available for Advanced HTML/Text elements β†’

Steps to reproduce

Have a D7 webform with a markup element with title.

Use webform_migrate to migrate the form.

Check the field in D8/9/10.

Proposed resolution

Not assign a title property (just like is being done for the pagebreak type)

Remaining tasks

Test the patch.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands batigolix Utrecht

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024