public static function ConfigHelper::forTheme in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::forTheme()
- 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::forTheme()
- 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::forTheme()
- 8.4 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::forTheme()
Creates a new ConfigHelper for a theme.
Parameters
string $theme: The theme name.
Return value
static A new ConfigHelper object.
File
- src/
ConfigHelper.php, line 213
Class
- ConfigHelper
- A facade to assist with manipulating default config.
Namespace
Drupal\lightning_coreCode
public static function forTheme($theme) {
return new static(\Drupal::service('theme_handler')
->getTheme($theme), \Drupal::configFactory(), \Drupal::entityTypeManager());
}