Skip to content
Snippets Groups Projects
Commit a36a116d authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2293749 by joshi.rohit100: Fixed Use ->url() in Forum module in overview form.

parent 19475dd4
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -100,8 +100,8 @@ public function buildForm(array $form, array &$form_state) { ...@@ -100,8 +100,8 @@ public function buildForm(array $form, array &$form_state) {
// Use the existing taxonomy overview submit handler. // Use the existing taxonomy overview submit handler.
$form['#submit'] = array(array($this, 'submitForm')); $form['#submit'] = array(array($this, 'submitForm'));
$form['terms']['#empty'] = $this->t('No containers or forums available. <a href="@container">Add container</a> or <a href="@forum">Add forum</a>.', array( $form['terms']['#empty'] = $this->t('No containers or forums available. <a href="@container">Add container</a> or <a href="@forum">Add forum</a>.', array(
'@container' => $this->urlGenerator()->generateFromPath('admin/structure/forum/add/container'), '@container' => $this->url('forum.add_container'),
'@forum' => $this->urlGenerator()->generateFromPath('admin/structure/forum/add/forum') '@forum' => $this->url('forum.add_forum')
)); ));
return $form; return $form;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment