Chris@0: getEditable('system.theme') Chris@0: * ->set('default', $theme) Chris@0: * ->save(); Chris@0: * @endcode Chris@0: */ Chris@0: public function setDefault($theme); Chris@0: Chris@0: /** Chris@0: * Returns an array of directories for all installed themes. Chris@0: * Chris@0: * Useful for tasks such as finding a file that exists in all theme Chris@0: * directories. Chris@0: * Chris@0: * @return array Chris@0: */ Chris@0: public function getThemeDirectories(); Chris@0: Chris@0: /** Chris@0: * Determines whether a given theme is installed. Chris@0: * Chris@0: * @param string $theme Chris@0: * The name of the theme (without the .theme extension). Chris@0: * Chris@0: * @return bool Chris@0: * TRUE if the theme is installed. Chris@0: */ Chris@0: public function themeExists($theme); Chris@0: Chris@0: /** Chris@0: * Returns a theme extension object from the currently active theme list. Chris@0: * Chris@0: * @param string $name Chris@0: * The name of the theme to return. Chris@0: * Chris@0: * @return \Drupal\Core\Extension\Extension Chris@0: * An extension object. Chris@0: * Chris@17: * @throws \Drupal\Core\Extension\Extension\UnknownExtensionException Chris@0: * Thrown when the requested theme does not exist. Chris@0: */ Chris@0: public function getTheme($name); Chris@0: Chris@0: /** Chris@0: * Determines if a theme should be shown in the user interface. Chris@0: * Chris@0: * To be shown in the UI the theme has to be installed. If the theme is hidden Chris@0: * it will not be shown unless it is the default or admin theme. Chris@0: * Chris@0: * @param string $name Chris@0: * The name of the theme to check. Chris@0: * Chris@0: * @return bool Chris@0: * TRUE if the theme should be shown in the UI, FALSE if not. Chris@0: */ Chris@0: public function hasUi($name); Chris@0: Chris@0: }