By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0
Description:
Install and uninstall functionality now managed by theme_installer service
The ThemeHandlerInterface methods install() and uninstall() deprecated and \Drupal\Core\Extension\ThemeInstallerInterface should be used instead.
Before
\Drupal::service('theme_handler')->install(['seven']);
\Drupal::service('theme_handler')->uninstall(['bartik']);
After
\Drupal::service('theme_installer')->install(['seven']);
\Drupal::service('theme_installer')->uninstall(['bartik']);
Impacts:
Module developers
Site templates, recipes and distribution developers