Unverified Commit d384ad74 authored by alexpott's avatar alexpott
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
parent 0a16b0f1
...@@ -166,7 +166,7 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -166,7 +166,7 @@ public function form(array $form, FormStateInterface $form_state) {
$form['theme'] = [ $form['theme'] = [
'#type' => 'select', '#type' => 'select',
'#options' => $theme_options, '#options' => $theme_options,
'#title' => t('Theme'), '#title' => $this->t('Theme'),
'#default_value' => $theme, '#default_value' => $theme,
'#ajax' => [ '#ajax' => [
'callback' => '::themeSwitch', 'callback' => '::themeSwitch',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment