diff --git a/src/Entity/Form/GroupContentForm.php b/src/Entity/Form/GroupContentForm.php index 9f203c1..7024e79 100644 --- a/src/Entity/Form/GroupContentForm.php +++ b/src/Entity/Form/GroupContentForm.php @@ -69,6 +69,10 @@ class GroupContentForm extends ContentEntityForm { $form['entity_id']['#access'] = FALSE; } + if ($this->operation === 'edit') { + $form['#title'] = $this->t('Edit %label', ['%label' => $this->getEntity()->label()]); + } + return $form; }