Commit 3be34dfd authored by catch's avatar catch

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

parent e96c41b5
......@@ -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;
......
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