public function FileOperations::fileBuildInfoYml in AT Tools 8
Same name and namespace in other branches
- 8.3 at_theme_generator/src/File/FileOperations.php \Drupal\at_theme_generator\File\FileOperations::fileBuildInfoYml()
- 8.2 at_theme_generator/src/File/FileOperations.php \Drupal\at_theme_generator\File\FileOperations::fileBuildInfoYml()
Generate an .info.yml file that can be parsed by drupal_parse_info_file().
Parameters
array $data: The associative array data to build the .info.yml file.
Return value
string A string corresponding to $data encoded in the .yml format.
See also
drupal_parse_info_file()
File
- at_theme_generator/
src/ File/ FileOperations.php, line 89 - Contains \Drupal\at_theme_generator\File\FileOperations
Class
Namespace
Drupal\at_theme_generator\FileCode
public function fileBuildInfoYml(array $data) {
$info = Yaml::encode($data);
return $info;
}