protected function ConfigBit::applyConfigActionImport in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x
Same name and namespace in other branches
- 8.8 src/Config/ConfigBit.php \Drupal\varbase\Config\ConfigBit::applyConfigActionImport()
Apply Config Action Import.
Parameters
array $config_action: The config action.
string $target_config_bit_name: The target config bit name.
\Drupal\Core\Config\Config $target_config_bit_factory: The target config object.
Return value
bool The status of the action.
1 call to ConfigBit::applyConfigActionImport()
- ConfigBit::processConfigBits in src/
Config/ ConfigBit.php - Process Config Bits.
File
- src/
Config/ ConfigBit.php, line 357
Class
- ConfigBit
- Class ConfigBit.
Namespace
Drupal\varbase\ConfigCode
protected function applyConfigActionImport(array $config_action, string $target_config_bit_name, Config &$target_config_bit_factory) {
if (!$this
->configExists($target_config_bit_name) && isset($config_action['target_config_value'])) {
$target_config_bit_factory
->setData($config_action['target_config_value']);
return TRUE;
}
return FALSE;
}