Commit 41f00e0c authored by catch's avatar catch
Browse files

Issue #2810903 by prics, GoZ: Second parameter in FileWidget::value() cannot...

Issue #2810903 by prics, GoZ: Second parameter in FileWidget::value() cannot be optional when the third parameter is required
parent 7cd916f7
......@@ -319,7 +319,7 @@ function template_preprocess_color_scheme_form(&$variables) {
* The data that will appear in the $form_state->getValues() collection for this
* element. Return nothing to use the default.
function color_palette_color_value($element, $input = FALSE, FormStateInterface $form_state) {
function color_palette_color_value($element, $input, FormStateInterface $form_state) {
// If we suspect a possible cross-site request forgery attack, only accept
// hexadecimal CSS color strings from user input, to avoid problems when this
// value is used in the JavaScript preview.
......@@ -311,7 +311,7 @@ public function extractFormValues(FieldItemListInterface $items, array $form, Fo
* This method is assigned as a #value_callback in formElement() method.
public static function value($element, $input = FALSE, FormStateInterface $form_state) {
public static function value($element, $input, FormStateInterface $form_state) {
if ($input) {
// Checkboxes lose their value when empty.
// If the display field is present make sure its unchecked value is saved.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment