Unverified Commit f2b97582 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3105975 by Hardik_Patel_12: t() calls should be avoided in classes, use...

Issue #3105975 by Hardik_Patel_12: t() calls should be avoided in classes, use dependency injection and $this->t() instead in block module

(cherry picked from commit d384ad74)
parent 87bdfdfc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ public function form(array $form, FormStateInterface $form_state) {
      $form['theme'] = [
        '#type' => 'select',
        '#options' => $theme_options,
        '#title' => t('Theme'),
        '#title' => $this->t('Theme'),
        '#default_value' => $theme,
        '#ajax' => [
          'callback' => '::themeSwitch',