How can I read Yaml files?
The arg to decode is:


  The raw data string to decode


So you need (e.g.):

$breakpointEncoded = Yaml::decode(file_get_contents('/PATH/TO/core/modules/toolbar/toolbar.breakpoints.yml'));