Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Theme/ThemeSettings.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Core\Theme; |
Chris@0 | 4 |
Chris@0 | 5 use Drupal\Core\Config\ConfigBase; |
Chris@0 | 6 |
Chris@0 | 7 /** |
Chris@0 | 8 * Provides a configuration API wrapper for runtime merged theme settings. |
Chris@0 | 9 * |
Chris@0 | 10 * Theme settings use configuration for base values but the runtime theme |
Chris@0 | 11 * settings are calculated based on various site settings and are therefore |
Chris@0 | 12 * not persisted. |
Chris@0 | 13 * |
Chris@0 | 14 * @see theme_get_setting() |
Chris@0 | 15 */ |
Chris@0 | 16 class ThemeSettings extends ConfigBase { |
Chris@0 | 17 |
Chris@0 | 18 /** |
Chris@0 | 19 * The theme of the theme settings object. |
Chris@0 | 20 * |
Chris@0 | 21 * @var string |
Chris@0 | 22 */ |
Chris@0 | 23 protected $theme; |
Chris@0 | 24 |
Chris@0 | 25 /** |
Chris@0 | 26 * Constructs a theme settings object. |
Chris@0 | 27 * |
Chris@0 | 28 * @param string $theme |
Chris@0 | 29 * The name of the theme settings object being constructed. |
Chris@0 | 30 */ |
Chris@0 | 31 public function __construct($theme) { |
Chris@0 | 32 $this->theme = $theme; |
Chris@0 | 33 } |
Chris@0 | 34 |
Chris@0 | 35 /** |
Chris@0 | 36 * Returns the theme of this theme settings object. |
Chris@0 | 37 * |
Chris@0 | 38 * @return string |
Chris@0 | 39 * The theme of this theme settings object. |
Chris@0 | 40 */ |
Chris@0 | 41 public function getTheme() { |
Chris@0 | 42 return $this->theme; |
Chris@0 | 43 } |
Chris@0 | 44 |
Chris@0 | 45 /** |
Chris@0 | 46 * {@inheritdoc} |
Chris@0 | 47 */ |
Chris@0 | 48 public function getCacheTags() { |
Chris@0 | 49 return ['rendered']; |
Chris@0 | 50 } |
Chris@0 | 51 |
Chris@0 | 52 } |