Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313918

Improve StringItem::generateSampleValue()

$
0
0

Problem/Motivation

Sample entity value generation generates long strings for text fields. This can cause the layout to break, as noted in #3016507: Break long text strings in layout edit

Proposed resolution

Rather than use \Drupal\Component\Utility\Random::word, which often generates very long words, use \Drupal\Component\Utility\Random::paragraphs, which uses words from a selection of shorter words.

Remaining tasks

Write a patch.

User interface changes

None-ish.

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 313918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>