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