diff --git a/core/modules/block/src/BlockForm.php b/core/modules/block/src/BlockForm.php index 4a9c48c..8a204ed 100644 --- a/core/modules/block/src/BlockForm.php +++ b/core/modules/block/src/BlockForm.php @@ -178,7 +178,6 @@ public function form(array $form, FormStateInterface $form_state) { '#suffix' => '', ); $form['#attached']['library'][] = 'block/drupal.block.admin'; - $form['#cache']['tags'] = Cache::mergeTags(isset($form['#cache']['tags']) ? $form['#cache']['tags'] : [], $config->getCacheTags()); return $form; } diff --git a/core/modules/book/src/Form/BookSettingsForm.php b/core/modules/book/src/Form/BookSettingsForm.php index 143d995..dc05eb8 100644 --- a/core/modules/book/src/Form/BookSettingsForm.php +++ b/core/modules/book/src/Form/BookSettingsForm.php @@ -52,7 +52,6 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#required' => TRUE, ); $form['array_filter'] = array('#type' => 'value', '#value' => TRUE); - $form['#cache']['tags'] = Cache::mergeTags(isset($form['#cache']['tags']) ? $form['#cache']['tags'] : [], $config->getCacheTags()); return parent::buildForm($form, $form_state); } diff --git a/core/modules/contact/src/ContactFormEditForm.php b/core/modules/contact/src/ContactFormEditForm.php index d219519..f027dbc 100644 --- a/core/modules/contact/src/ContactFormEditForm.php +++ b/core/modules/contact/src/ContactFormEditForm.php @@ -80,7 +80,6 @@ public function form(array $form, FormStateInterface $form_state) { '#default_value' => $default_form === $contact_form->id(), ); - $form['#cache']['tags'] = Cache::mergeTags(isset($form['#cache']['tags']) ? $form['#cache']['tags'] : [], $config->getCacheTags()); return $form; }