Add method to retrieve the transition in "StateTransitionConfirmForm"

Created on 31 March 2023, about 1 year ago
Updated 16 May 2023, about 1 year ago

Problem/Motivation

Trying to alter the StateTransitionConfirmForm, we were unable to retrieve the transition. It was a key part to determine that alterations to make in the form.

It is a protected property passed to the form constructor, so we were unable to find the way to get it from the hook_form_alter() context.

Proposed resolution

Add a getTransition() method to this form class that allows to access to the $transition object.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain plopesc Valladolid

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

Comments & Activities

Production build 0.69.0 2024