Skip to content
Snippets Groups Projects
Commit 7c9705b3 authored by Jess Straatmann's avatar Jess Straatmann
Browse files

Issue #3487761 by jastraat, terracoders: file_validate functions are deprecated, removed in D11

parent 327b2036
Branches
Tags
2 merge requests!32Resolve #3487761 "Filevalidate functions deprecated",!3ISSUE #3228163: Add create or update logic.
Pipeline #390030 passed with warnings
......@@ -121,7 +121,7 @@ class AddSectionToLibraryForm extends FormBase {
'#multiple' => FALSE,
'#upload_location' => 'public://',
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
'FileExtension' => ['gif png jpg jpeg'],
],
];
......
......@@ -121,7 +121,7 @@ class AddTemplateToLibraryForm extends FormBase {
'#multiple' => FALSE,
'#upload_location' => 'public://',
'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
'FileExtension' => ['gif png jpg jpeg'],
],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment