Hook update to set the missing prefix into block type ebt_counter

Created on 31 March 2023, over 1 year ago
Updated 2 April 2023, over 1 year ago

Problem/Motivation

Recently we updated the description of block type ebt_counter to include the standard EBT prefix at Update the prefix of block type description to follow the same standard of other EBT projects Fixed . This is working fine for the new users that are installing. In order to make it works for sites that already have the ebt_counter installed we need to create a hook update with this enhancement since Drupal will read the yml from config/install only during the install process and not during the update

Steps to reproduce

Proposed resolution

  1. Implements hook_update_N
  2. Load the block type
  3. Set the new description, adding the prefix and keeping the description
  4. 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.71.5 2024