Create a hook_update to update the label of paragraph type ebt_tab

Created on 25 March 2023, over 1 year ago
Updated 26 March 2023, over 1 year ago

Problem/Motivation

Recently on issue ✨ Insert the missing EBT prefix into label of paragraph type "Tab" Fixed we update the title of paragraph_type "ebt_tab" to add the prefix "EBT" that is commonly used in other EBT projects but was missing at ebt_tabs. It worked fine, so new users that install the project will get the correct name. Now in order to make the same update for users that already have it installed we need to create a hook_update, with that after update the code base they can run the update.php or drush updb and will get this update

Steps to reproduce

Proposed resolution

  1. Implements a hook_update_N
  2. Define use to paragraph entity class
  3. Load the paragraph type
  4. set the new title (label property)
  5. save the object

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.69.0 2024