Create the hook_update_N to set the field "Body" as required by default on EBT Text

Created on 21 March 2023, over 1 year ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

Inside of block type "EBT Text" we updated the field "body" to be required by default on this ticket Fix the EBT Text body to be required by default Fixed
It worked fine for new users because during the install Drupal will read the folder config/install where we have this yml with "Body" as required for "EBT Text"

Now for users that already have the EBT Text installed we need to create a hook_update_N, because even with the update, Drupal won't read the folder config/install for the users that already have the EBT Text installed

Steps to reproduce

Proposed resolution

Implement the hook_update_N -> Load the block type EBT Text -> Load the config field object -> Set by required by default -> Save it

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024