Commit 5789f0e6 authored by Crell's avatar Crell

Issue #2651078 by Crell: Default transitions include unchanged states

Merge branch '2651078-transition-help-text' into 8.x-1.x
parents 0eb0d45a 1e3b2883
......@@ -73,4 +73,19 @@ class ModerationStateTransitionListBuilder extends DraggableListBuilder {
return $row + parent::buildRow($entity);
}
/**
* {@inheritdoc}
*/
public function render() {
$build = parent::render(); // TODO: Change the autogenerated stub
$build['item'] = [
'#type' => 'item',
'#markup' => $this->t('When saving an entity, only a destination state that has a transition is legal. That includes its current state. If you want to allow an entity to be saved without changing its state then you must define a transition from that state to itself. Note that all users will still need permission to use a defined transition.'),
'#weight' => -5,
];
return $build;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment