Fields have a generateSampleValue method for generating sample data. Let's override the method and allow providing sample price data for fields.

This is required for #2952529: Support for Layout Builder module.

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
StatusFileSize
new1.65 KB

Test only.

mglaman’s picture

StatusFileSize
new3.14 KB

And the impementation

The last submitted patch, 2: price_fields_should-3145060-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • mglaman committed f972937 on 8.x-2.x
    Issue #3145060 by mglaman: Price fields should be able to generate...
mglaman’s picture

Status: Needs review » Fixed

Committed! This helps provide default values when working with Layout Builder's sample content. And probably devel_generate!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.