function varbase_update_8033 in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.4
Enabled "Create new revision" for Basic block.
File
- ./
varbase.install, line 439 - Install, update and uninstall functions for the Varbase installation profile.
Code
function varbase_update_8033() {
$profile_path = drupal_get_path('profile', 'varbase') . '/config/install/';
$config_path = $profile_path . 'block_content.type.basic.yml';
$data = (array) Yaml::parse($config_path);
$config = \Drupal::configFactory()
->getEditable('block_content.type.basic');
$config
->setData($data)
->save(TRUE);
}