Commit dd3e5a11 authored by Dries's avatar Dries
Browse files

Issue #2102479 by InternetDevels, dipen chaudhary: Remove drupal_set_title in...

Issue #2102479 by InternetDevels, dipen chaudhary: Remove drupal_set_title in system/ajax_test module controllers.
parent 4f192c56
ajax_test.dialog_contents: ajax_test.dialog_contents:
path: '/ajax-test/dialog-contents' path: '/ajax-test/dialog-contents'
defaults: defaults:
_title: 'AJAX Dialog contents'
_content: '\Drupal\ajax_test\Controller\AjaxTestController::dialogContents' _content: '\Drupal\ajax_test\Controller\AjaxTestController::dialogContents'
requirements: requirements:
_access: 'TRUE' _access: 'TRUE'
...@@ -8,6 +9,7 @@ ajax_test.dialog_contents: ...@@ -8,6 +9,7 @@ ajax_test.dialog_contents:
ajax_test.dialog_form: ajax_test.dialog_form:
path: '/ajax-test/dialog-form' path: '/ajax-test/dialog-form'
defaults: defaults:
_title: 'Ajax Form contents'
_form: '\Drupal\ajax_test\AjaxTestForm' _form: '\Drupal\ajax_test\AjaxTestForm'
requirements: requirements:
_access: 'TRUE' _access: 'TRUE'
......
...@@ -26,8 +26,6 @@ public function getFormId() { ...@@ -26,8 +26,6 @@ public function getFormId() {
*/ */
public function buildForm(array $form, array &$form_state) { public function buildForm(array $form, array &$form_state) {
drupal_set_title(t('Ajax Form contents'));
$form['#action'] = url('ajax-test/dialog'); $form['#action'] = url('ajax-test/dialog');
$form['#cache'] = TRUE; $form['#cache'] = TRUE;
......
...@@ -17,7 +17,6 @@ class AjaxTestController { ...@@ -17,7 +17,6 @@ class AjaxTestController {
*/ */
public function dialogContents() { public function dialogContents() {
// Re-use the utility method that returns the example content. // Re-use the utility method that returns the example content.
drupal_set_title(t('AJAX Dialog contents'));
return ajax_test_dialog_contents(); return ajax_test_dialog_contents();
} }
......
Supports Markdown
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