Skip to content
Snippets Groups Projects

Port patch to MR

Open Gabriel Seth Ente requested to merge issue/ctc-3131508:3131508-explode into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -80,7 +80,7 @@ class ClearTagCacheForm extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
// Get Form Values.
$form_data = $form_state->getvalues();
$tags_arr = explode(',', $form_data['tags_name']);
$tags_arr = array_filter(array_map('trim', explode(',', $form_data['tags_name'])));
Cache::invalidateTags($tags_arr);
// Message for user.
$this->messenger->addStatus('Tags cache clear successfully !');
Loading