Skip to content
Snippets Groups Projects
Commit 6c26bae5 authored by Ian Carlson's avatar Ian Carlson Committed by Benjamin Melançon
Browse files

Issue #3397027: Have to publish twice to update URL alias (pathauto)

parent f4d5631d
No related branches found
No related tags found
1 merge request!16Issue #3397027 add WorkflowButtonsWidget::validateElement to correctly set moderation_state
Pipeline #235073 passed with warnings
......@@ -377,4 +377,11 @@ class WorkflowButtonsWidget extends OptionsSelectWidget implements ContainerFact
return $field_definition->getName() === 'moderation_state';
}
/**
* {@inheritdoc}
*/
public static function validateElement(array $element, FormStateInterface $form_state) {
$form_state->setValueForElement($element, ['value' => $element['#value']]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment