Commit 7c7252b2 authored by Antonín Slejška's avatar Antonín Slejška
Browse files

Use placeholders with t() instead of the concantenated variable.

parent 8e29dd1d
Loading
Loading
Loading
Loading
+4 −2
Changes for src/Form/OpenSearchSettingsForm.php: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -90,8 +90,10 @@ class OpenSearchSettingsForm extends ConfigFormBase {
      Url::fromRoute('opensearchtab.opensearchdescription')
    )->toString();

    $info_text = $this->t('See the XML of the open search tab:') . ' ' .
      $opensearchdescription_link;
    $info_text = $this->t('See the XML of the open search tab: @link', [
        '@link' => $opensearchdescription_link,
      ]
    );

    $form['info_box'] = [
      '#type' => 'details',