class EntityUpdateHelper in Entity Update 2.0.x
Same name and namespace in other branches
- 8 src/EntityUpdateHelper.php \Drupal\entity_update\EntityUpdateHelper
Entity Update Helper functions.
Hierarchy
- class \Drupal\entity_update\EntityUpdateHelper
Expanded class hierarchy of EntityUpdateHelper
1 file declares its use of EntityUpdateHelper
- Settings.php in src/
Form/ Settings.php
File
- src/
EntityUpdateHelper.php, line 8
Namespace
Drupal\entity_updateView source
class EntityUpdateHelper {
/**
* Get Configuration Name.
*/
public static function getConfigName() {
return 'entity_update.settings';
}
/**
* Get Configuration Object.
*
* @param bool $editable
* Is editable.
*
* @return \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig
* Configuration object.
*/
public static function getConfig($editable = FALSE) {
if ($editable) {
$config = \Drupal::configFactory()
->getEditable(static::getConfigName());
}
else {
$config = \Drupal::config(static::getConfigName());
}
return $config;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityUpdateHelper:: |
public static | function | Get Configuration Object. | |
EntityUpdateHelper:: |
public static | function | Get Configuration Name. |