drupal-console
drupal-console copied to clipboard
[theme:install] Set default admin theme
Issue
There is no way to change easily default theme of admin UI using drupal console.
There is an option for drush to change current admin theme via drush config-set system.theme admin [THEME_NAME]
.
How to reproduce
Try to set admin theme as default and see, that nothing happen.
vendor/bin/drupal theme:install --set-default adminimal_theme
Output
The "Adminimal" theme has been installed successfully as default theme
Default theme still is "Seven" (out of box default for drupal project).
Command should not say that it has installed successfully as default theme
, if it did not do such change.
Solution
Solution 1
Command should automatically recognize that its admin theme and set it as "admin default" theme.
Solution 2
There should be another option for theme:install
command, that allows to "Set theme as default admin theme".
Lets call it --set-admin-default
.
That just seems quite logical and easy to implement.
PS: Could be done if #1522 is resolved by implementing config-set
command