Skip to content
Snippets Groups Projects
Verified Commit e2774eb7 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3361695 by tunic, smustgrave, lauriii, quietone, borisson_: Fix the...

Issue #3361695 by tunic, smustgrave, lauriii, quietone, borisson_: Fix the documentation for #empty_value on Drupal\Core\Render\Element\Select
parent d171bb91
Branches
Tags
2 merge requests!3478Issue #3337882: Deleted menus are not removed from content type config,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #468127 passed with warnings
Pipeline: drupal

#468137

    Pipeline: drupal

    #468133

      Pipeline: drupal

      #468130

        ......@@ -41,7 +41,11 @@
        * field and "- None -" for an optional field.
        * - #empty_value: (optional) The value for the first default option, which is
        * used to determine whether the user submitted a value or not.
        * - If #required is TRUE, this defaults to '' (an empty string).
        * - If #required is TRUE, this defaults to '' (an empty string). Note that
        * if #empty_value is the same as a key in #options then the value of
        * #empty_option is used for that key in the #options array. This is
        * because #empty_value and #empty_option are merged into the #options
        * array. Hence, make sure #empty_value is not a key in #options array.
        * - If #required is not TRUE and this value isn't set, then no extra option
        * is added to the select control, leaving the control in a slightly
        * illogical state, because there's no way for the user to select nothing,
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment