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

Issue #2102449 by swentel: Remove drupal_set_title() in field_ui module controllers.

parent a2e539c7
No related branches found
No related tags found
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
......@@ -91,8 +91,6 @@ public function buildForm(array $form, array &$form_state, FieldInstanceInterfac
$field = $this->instance->getField();
$form['#field'] = $field;
drupal_set_title($this->instance->label());
$description = '<p>' . $this->t('These settings apply to the %field field everywhere it is used. These settings impact the way that data is stored in the database and cannot be changed once data has been created.', array('%field' => $this->instance->label())) . '</p>';
// Create a form structure for the field values.
......
......@@ -69,10 +69,11 @@ public function buildForm(array $form, array &$form_state, FieldInstanceInterfac
$field = $this->instance->getField();
$bundles = entity_get_bundles();
drupal_set_title($this->t('%instance settings for %bundle', array(
$form_title = $this->t('%instance settings for %bundle', array(
'%instance' => $this->instance->getFieldLabel(),
'%bundle' => $bundles[$entity_type][$bundle]['label'],
)), PASS_THROUGH);
));
$form['#title'] = $form_title;
$form['#field'] = $field;
// Create an arbitrary entity object (used by the 'default value' widget).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment