function block_content_post_update_revision_type
Update configuration for revision type.
File
-
core/
modules/ block_content/ block_content.post_update.php, line 88
Code
function block_content_post_update_revision_type(&$sandbox = NULL) {
\Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'block_content_type', function (BlockContentTypeInterface $block_content_type) {
$block_content_type->set('revision', (bool) $block_content_type->get('revision'));
return TRUE;
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.