protected YamlDiscovery::decode($file)
Decode a YAML file.
Parameters
string $file: Yaml file path.
Return value
array
File
- core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 79
Class
- YamlDiscovery
- Provides discovery for YAML files within a given set of directories.
Namespace
Drupal\Component\Discovery
Code
1 2 3 | protected function decode( $file ) { return Yaml::decode( file_get_contents ( $file )) ? : []; } |
Please login to continue.