Commit 85a5b1ee authored by Dries's avatar Dries

Issue #2102441 by sidharthap, -enzo-, InternetDevels, rteijeiro: Remove...

Issue #2102441 by sidharthap, -enzo-, InternetDevels, rteijeiro: Remove drupal_set_title() in config module controllers.
parent ab59feb8
......@@ -23,6 +23,7 @@ config.export:
path: '/admin/config/development/configuration/export'
defaults:
_form: '\Drupal\config\Form\ConfigExportForm'
_title: 'Export'
requirements:
_permission: 'export configuration'
......@@ -30,6 +31,7 @@ config.import:
path: '/admin/config/development/configuration/import'
defaults:
_form: '\Drupal\config\Form\ConfigImportForm'
_title: 'Import'
requirements:
_permission: 'import configuration'
......@@ -37,5 +39,6 @@ config.sync:
path: '/admin/config/development/configuration/sync'
defaults:
_form: '\Drupal\config\Form\ConfigSync'
_title: 'Synchronize'
requirements:
_permission: 'synchronize configuration'
......@@ -93,9 +93,6 @@ public function downloadExport() {
* Table showing a two-way diff between the active and staged configuration.
*/
public function diff($config_file) {
// @todo Remove use of drupal_set_title() when
// http://drupal.org/node/1871596 is in.
drupal_set_title(t('View changes of @config_file', array('@config_file' => $config_file)), PASS_THROUGH);
$diff = config_diff($this->targetStorage, $this->sourceStorage, $config_file);
$formatter = new \DrupalDiffFormatter();
......@@ -103,6 +100,7 @@ public function diff($config_file) {
$build = array();
$build['#title'] = t('View changes of @config_file', array('@config_file' => $config_file));
// Add the CSS for the inline diff.
$build['#attached']['css'][] = drupal_get_path('module', 'system') . '/css/system.diff.css';
......
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