The "#pre_render" render array value expects an array of callbacks

Created on 3 May 2024, 8 months ago

The "#pre_render" render array value expects an array of callbacks

We are planning to upgrade our application from D9 to D10. As per the upgrade status module scan result, Getting two warning errors as follows.
modules/contrib/media_directories/modules/media_directories_ui/src/Form/FileUploadForm.php

┌──────────┬──────┬──────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                         MESSAGE                          │
├──────────┼──────┼──────────────────────────────────────────────────────────┤
│ Check    │ 87   │ The "#pre_render" render array value expects an array of │
│ manually │      │ callbacks.                                               │
│          │      │                                                          │
└──────────┴──────┴──────────────────────────────────────────────────────────┘

modules/custom/overridden_contrib_modules/media_directories/modules/media_directories_ui/src/Form/MediaCombinedUploadForm.php
┌──────────┬──────┬──────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                         MESSAGE                          │
├──────────┼──────┼──────────────────────────────────────────────────────────┤
│ Check    │ 111  │ The "#pre_render" render array value expects an array of │
│ manually │      │ callbacks.                                               │
│          │      │                                                          │
└──────────┴──────┴──────────────────────────────────────────────────────────┘

Any idea how to fix these two warning errors?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇮🇳India mageshbcet1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024