Issue #2102479 by InternetDevels, dipen chaudhary: Remove drupal_set_title in system/ajax_test module controllers.
parent
4f192c569f
commit
dd3e5a1177
|
@ -1,6 +1,7 @@
|
||||||
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:
|
||||||
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 @@ class AjaxTestForm implements FormInterface {
|
||||||
*/
|
*/
|
||||||
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 {
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue