You are here

function skinr_test_custom_theme in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 tests/skinr_test/skinr_test.module \skinr_test_custom_theme()

Implements hook_custom_theme().

File

tests/modules/skinr_test/skinr_test.module, line 74
Skinr testing module.

Code

function skinr_test_custom_theme() {
  if (\Drupal\Core\Url::fromRoute("<current>")
    ->toString() == 'skinr-test/current-theme-hook-custom-theme') {
    return 'garland';
  }
}