Not working in Block form alter

Created on 2 February 2023, almost 2 years ago
Updated 23 November 2023, about 1 year ago

Problem/Motivation

Field not working in hook_form_FORM_ID_alter

Steps to reproduce

Add field in hook_form_FORM_ID_alter

$form['third_party_settings']['background_block']['background'] = [
      '#type' => 'color_picker',
      '#title' => t('Background Color'),
      '#description' => t('Select the background color.'),
      '#default_value' => $block->getThirdPartySetting('background_block', 'background'),
      '#color_values' => '#000000,#ff0000,#00ff00,#0000ff,#ffffff',
    ];
🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India heni_deepak Jaipur, Rajasthan, India

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

Comments & Activities

Production build 0.71.5 2024