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

Command icon 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

joachim created an issue. See original summary.

joachim’s picture

Component: forms system » documentation

myoussef.linksystemz made their first commit to this issue’s fork.

myoussef.linksystemz’s picture

Status: Active » Needs review

Opened a merge request that updates the comment to refer to "the value callback", as proposed. Ready for review.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

This one seemed straight forward.