Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mtift’s picture

Assigned: Unassigned » mtift
mtift’s picture

Status: Active » Needs review
Issue tags: +Configuration system
FileSize
5.64 KB

Patch is attached. In cases where we are currently using TRUE (booleans), I converted them to '1'.

mtift’s picture

The previous patch was wrong on multiple levels, so please ignore it.

Changing node_admin_them to admin_theme could potentially cause confusion with the admin_theme in the system module (especially in ThemeTest.php). I discussed this with @msonnabaum, who suggested use_admin_theme_for_editing_nodes, which seemed more descriptive, but would more accurately need to be named use_admin_theme_for_editing_or_creating_nodes. That seemed too long. @effulgentsia and I thought use_admin_theme would be sufficiently descriptive so that is what I used.

mtift’s picture

Updated patch to make config in node.settings.yml alphabetical.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Actually this looks ok :).

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/node/config/node.settings.ymlundefined
@@ -1 +1,2 @@
+use_admin_theme: '1'

It seems like we're changing the default behaviour here. When it was a variable the default was false and now it true.

+++ b/core/modules/node/node.installundefined
@@ -430,7 +430,7 @@ function node_uninstall() {
+  Drupal::config('node.settings')->delete('use_admin_theme');

There's no need for this line. Default config is automatically removed on uninstall. And delete() does not clear a single key anyway :)

mtift’s picture

Status: Needs work » Needs review
FileSize
793 bytes
7.45 KB

Updated patch attached

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Back to rtbc unless I'm missing something again?

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.