class ParserYaml

  1. 8.0.x lib/Drush/Make/Parser/ParserYaml.php ParserYaml
  2. 7.x lib/Drush/Make/Parser/ParserYaml.php ParserYaml
  3. master lib/Drush/Make/Parser/ParserYaml.php ParserYaml




Expanded class hierarchy of ParserYaml


Contains filters are case sensitive
Namesort descending Modifiers Type Description
ParserYaml::parse public static function Parse an input string into an array. Overrides ParserInterface::parse
ParserYaml::supportedFile public static function Determine if a given file is supported. Overrides ParserInterface::supportedFile


lib/Drush/Make/Parser/ParserYaml.php, line 12
Parser for YAML format.

View source
class ParserYaml implements ParserInterface {

   * {@inheritdoc}
  public static function supportedFile($filename) {
    $info = pathinfo($filename);
    return isset($info['extension']) && $info['extension'] === 'yml';

   * {@inheritdoc}
  public static function parse($data) {
    return Yaml::parse($data);

2 files declare their use of ParserYaml in commands/make/
General utility functions for Drush Make.
ParserYamlTest.php in tests/Drush/Tests/Make/Parser/ParserYamlTest.php