Skip to content
Snippets Groups Projects
Commit 3be34dfd authored by catch's avatar catch
Browse files

Issue #2102451 by vijaycs85, sidharthap: Remove drupal_set_title() in filter module controllers.

parent e96c41b5
Branches
Tags
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
......@@ -25,6 +25,7 @@ filter.format_add:
path: '/admin/config/content/formats/add'
defaults:
_entity_form: filter_format.add
_title: 'Add text format'
requirements:
_permission: 'administer filters'
......
......@@ -16,7 +16,6 @@ class FilterFormatAddFormController extends FilterFormatFormControllerBase {
* {@inheritdoc}
*/
public function form(array $form, array &$form_state) {
drupal_set_title('Add text format');
return parent::form($form, $form_state);
}
......
......@@ -22,7 +22,7 @@ public function form(array $form, array &$form_state) {
throw new NotFoundHttpException();
}
drupal_set_title($this->entity->label());
$form['#title'] = $this->entity->label();
$form = parent::form($form, $form_state);
$form['roles']['#default_value'] = array_keys(filter_get_roles_by_format($this->entity));
return $form;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment