Enable Gutenberg for Custom Post Type

add_action('init', 'wpkb_create_kb_entry_post_type');
function wpkb_create_kb_entry_post_type()
{
    register_post_type('kb_entry',
    array(
        'labels' => array(
            'name' => __('KB-Entries'),
            'singular_name' => __('KB-Entry'),
        ),
        'public' => true,
		'show_in_rest' => true,
        'has_archive' => true,
        'supports' => array('title', 'editor', 'excerpt', 'author', 'comments', 'trackbacks', 'revisions'),
        'taxonomies' => ['kb_tag', 'kb_category'],
        'rewrite' => array('slug' => 'kb'),
		'yarpp_support' => true,
        )
    );
}