function varbase_bootstrap_paragraphs_update_8001 in Varbase Bootstrap Paragraphs 8.4
Issue #2904616: Enhanced the width of Paragraph types to respect container.
File
- ./
varbase_bootstrap_paragraphs.install, line 13 - Install, uninstall and update hooks for Varbase Boostrap Paragraphs module.
Code
function varbase_bootstrap_paragraphs_update_8001() {
$profile_path = drupal_get_path('module', 'varbase_bootstrap_paragraphs') . '/config/install/';
$configs['field.storage.paragraph.bp_width'] = $profile_path . 'field.storage.paragraph.bp_width.yml';
foreach ($configs as $name => $config_path) {
$data = (array) Yaml::parse($config_path);
$config = \Drupal::configFactory()
->getEditable($name);
$config
->setData($data)
->save(TRUE);
}
}