function layout_builder_post_update_default_expose_field_block_setting

Configure the default expose all fields setting.

File

core/modules/layout_builder/layout_builder.post_update.php, line 76

Code

function layout_builder_post_update_default_expose_field_block_setting() : void {
    \Drupal::configFactory()->getEditable('layout_builder.settings')
        ->set('expose_all_field_blocks', TRUE)
        ->save(TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.