Error thrown

Call to undefined method WP_Theme::get_block_patterns()