array_slice is not work on drupal 10

Created on 17 April 2025, about 1 month ago

Problem/Motivation

array_splice($form['actions']['submit']['#submit'], $key, 0, 'entity_translation_unified_form_node_form_submit');
      if (isset($form['actions']['preview'])) {
        array_splice($form['actions']['preview']['#submit'], $keyp, 0, 'entity_translation_unified_form_node_form_preview');
      }
      if (isset($form['actions']['saveonly'])) {
        array_splice($form['actions']['saveonly']['#submit'], $keypp, 0, 'entity_translation_unified_form_node_form_submit');
      }

is not work on drupal 10

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇻🇳Vietnam nhanlq@outlook.com Ho Chi Minh City, VN

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024