public static function EntityUpdateHelper::getConfig in Entity Update 8
Same name and namespace in other branches
- 2.0.x src/EntityUpdateHelper.php \Drupal\entity_update\EntityUpdateHelper::getConfig()
Get Configuration Object.
Parameters
bool $editable: Is editable.
Return value
\Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig Configuration object.
File
- src/
EntityUpdateHelper.php, line 26
Class
- EntityUpdateHelper
- Entity Update Helper functions.
Namespace
Drupal\entity_updateCode
public static function getConfig($editable = FALSE) {
if ($editable) {
$config = \Drupal::configFactory()
->getEditable(static::getConfigName());
}
else {
$config = \Drupal::config(static::getConfigName());
}
return $config;
}