function bootstrap_paragraphs_read_in_new_config in Bootstrap Paragraphs 8.2
Reads in new configuration.
Parameters
string $config_name: Configuration name.
string $bp_path: Base path.
1 call to bootstrap_paragraphs_read_in_new_config()
- bootstrap_paragraphs_update_8201 in ./
bootstrap_paragraphs.install - Adds Column Wrapper paragraphs bundle.
File
- ./
bootstrap_paragraphs.install, line 21 - Install, uninstall and update hooks for Bootstrap Paragraphs module.
Code
function bootstrap_paragraphs_read_in_new_config($config_name, $bp_path) {
/** @var \Drupal\Core\Config\StorageInterface $active_storage */
$active_storage = \Drupal::service('config.storage');
$active_storage
->write($config_name, Yaml::parse(file_get_contents($bp_path . '/config/install/' . $config_name . '.yml')));
}