summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-09-19 10:25:26 +0100
committerNathaniel Catchpole2014-09-19 10:25:26 +0100
commit2a0254f9738a661cf6d89551b9f1fdbec1482738 (patch)
treec344fc0fc371e9ffce283c867b1bf28415eb82d0 /core/modules/breakpoint
parentf27fd1f59877f7e16441c88193425242d3e0faff (diff)
Issue #2232605 by alexpott, dawehner, martin107, Cottser, sun: Fixed Themes cannot be uninstalled.
Diffstat (limited to 'core/modules/breakpoint')
-rw-r--r--core/modules/breakpoint/breakpoint.module8
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/core/modules/breakpoint/breakpoint.module b/core/modules/breakpoint/breakpoint.module
index 35187b1..eff0aef 100644
--- a/core/modules/breakpoint/breakpoint.module
+++ b/core/modules/breakpoint/breakpoint.module
@@ -37,15 +37,15 @@ function breakpoint_help($route_name, RouteMatchInterface $route_match) {
}
/**
- * Implements hook_themes_enabled()
+ * Implements hook_themes_installed()
*/
-function breakpoint_themes_enabled($theme_list) {
+function breakpoint_themes_installed($theme_list) {
\Drupal::service('breakpoint.manager')->clearCachedDefinitions();
}
/**
- * Implements hook_themes_disabled()
+ * Implements hook_themes_uninstalled()
*/
-function breakpoint_themes_disabled($theme_list) {
+function breakpoint_themes_uninstalled($theme_list) {
\Drupal::service('breakpoint.manager')->clearCachedDefinitions();
}
diff --git a/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php b/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php
index c7dda94..a8a46f9 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php
@@ -24,7 +24,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
protected function setUp() {
parent::setUp();
- \Drupal::service('theme_handler')->enable(array('breakpoint_theme_test'));
+ \Drupal::service('theme_handler')->install(array('breakpoint_theme_test'));
}
/**