diff --git a/core/modules/block/lib/Drupal/block/BlockFormController.php b/core/modules/block/lib/Drupal/block/BlockFormController.php index 8053279..b1200ea 100644 --- a/core/modules/block/lib/Drupal/block/BlockFormController.php +++ b/core/modules/block/lib/Drupal/block/BlockFormController.php @@ -36,7 +36,7 @@ public function form(array $form, array &$form_state, EntityInterface $entity) { '#type' => 'textfield', '#title' => t('Block title'), '#maxlength' => 255, - '#default_value' => $label, + '#default_value' => $entity->label(), ); $form['settings']['machine_name'] = array( '#type' => 'textfield',