Change record status: 
Project: 
Introduced in branch: 
8.x-1.x
Introduced in version: 
8.x-2.0-alpha1
Description: 

lazy_disabled_by_path() is deprecated in lazy:8.3.0 is removed from lazy:8.3.1. Instead, you should use

\Drupal::service('lazy')->isPathAllowed($disabled_paths);