Commit dd3e5a11 authored by Dries's avatar Dries

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