Loading src/Form/WatchdogDeleteForm.php +10 −10 Original line number Diff line number Diff line Loading @@ -68,10 +68,10 @@ class WatchdogDeleteForm extends ConfirmFormBase { */ public function buildForm(array $form, FormStateInterface $form_state) { $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol('type'); $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol(); foreach ($types as $type) { $options[$type] = t($type); $options[$type] = $this->t($type); } $form['filters'] = [ Loading @@ -86,7 +86,7 @@ class WatchdogDeleteForm extends ConfirmFormBase { '#type' => 'select', '#multiple' => TRUE, '#title' => $this->t('Type'), '#description' => t('Select one or more types to delete.'), '#description' => $this->t('Select one or more types to delete.'), '#options' => $options, '#size' => 10, '#weight' => '0', Loading @@ -97,7 +97,7 @@ class WatchdogDeleteForm extends ConfirmFormBase { '#type' => 'select', '#multiple' => TRUE, '#title' => $this->t('Severity'), '#description' => t('Select one or more severities to delete.'), '#description' => $this->t('Select one or more severities to delete.'), '#options' => RfcLogLevel::getLevels(), '#size' => 8, '#weight' => '1', Loading Loading
src/Form/WatchdogDeleteForm.php +10 −10 Original line number Diff line number Diff line Loading @@ -68,10 +68,10 @@ class WatchdogDeleteForm extends ConfirmFormBase { */ public function buildForm(array $form, FormStateInterface $form_state) { $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol('type'); $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol(); foreach ($types as $type) { $options[$type] = t($type); $options[$type] = $this->t($type); } $form['filters'] = [ Loading @@ -86,7 +86,7 @@ class WatchdogDeleteForm extends ConfirmFormBase { '#type' => 'select', '#multiple' => TRUE, '#title' => $this->t('Type'), '#description' => t('Select one or more types to delete.'), '#description' => $this->t('Select one or more types to delete.'), '#options' => $options, '#size' => 10, '#weight' => '0', Loading @@ -97,7 +97,7 @@ class WatchdogDeleteForm extends ConfirmFormBase { '#type' => 'select', '#multiple' => TRUE, '#title' => $this->t('Severity'), '#description' => t('Select one or more severities to delete.'), '#description' => $this->t('Select one or more severities to delete.'), '#options' => RfcLogLevel::getLevels(), '#size' => 8, '#weight' => '1', Loading