You are here

public function FileOperations::fileBuildInfoYml in AT Tools 8

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/File/FileOperations.php \Drupal\at_theme_generator\File\FileOperations::fileBuildInfoYml()
  2. 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

FileOperations

Namespace

Drupal\at_theme_generator\File

Code

public function fileBuildInfoYml(array $data) {
  $info = Yaml::encode($data);
  return $info;
}