public static function ParserYaml::parse

8.0.x ParserYaml.php public static ParserYaml::parse($data)
7.x ParserYaml.php public static ParserYaml::parse($data)
master ParserYaml.php public static ParserYaml::parse($data)

Parse an input string into an array.

Parameters

string $data:

Return value

array Makefile data as an array.

Overrides ParserInterface::parse

1 call to ParserYaml::parse()
ParserYamlTest::testParse in tests/Drush/Tests/Make/Parser/ParserYamlTest.php
@dataProvider providerParse @covers ::parse

File

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

Namespace

Drush\Make\Parser

Class

ParserYaml

Code

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