get('state'); $configuration = $this->workflowType->getConfiguration(); $form['extra'] = [ '#type' => 'textfield', '#title' => $this->t('Extra'), '#description' => $this->t('Extra information added to state'), '#default_value' => isset($configuration['states'][$state->id()]['extra']) ? $configuration['states'][$state->id()]['extra'] : '', ]; return $form; } }