Implements Drupal\Core\Config\StorageInterface::read().
Symfony\Component\Yaml\Exception\ParseException
Overrides StorageInterface::read
public function read($name) {
if (!$this
->exists($name)) {
return FALSE;
}
$data = file_get_contents($this
->getFilePath($name));
// @todo Yaml throws a ParseException on invalid data. Is it expected to be
// caught or not?
$data = $this
->decode($data);
return $data;
}