Problem/Motivation
FormBuilder has this:
// Call #type_value without a second argument to request default_value
// handling.
$element['#value'] = call_user_func_array($value_callable, [&$element, FALSE, &$form_state]);
There is no such thing as #type_value -- this string is nowhere else in the codebase.
It looks like we mean this instead:
$value_callable = $element['#value_callback'] ?? FormElementBase::class . '::valueCallback';
Steps to reproduce
Proposed resolution
Say 'the value callback' instead.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3643541
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joachim commentedComment #5
myoussef.linksystemz commentedOpened a merge request that updates the comment to refer to "the value callback", as proposed. Ready for review.
Comment #6
smustgrave commentedThis one seemed straight forward.