public static function ParserYaml::supportedFile

8.0.x ParserYaml.php public static ParserYaml::supportedFile($filename)
7.x ParserYaml.php public static ParserYaml::supportedFile($filename)
master ParserYaml.php public static ParserYaml::supportedFile($filename)

Determine if a given file is supported.

Parameters

string $filename:

Return value

bool

Overrides ParserInterface::supportedFile

1 call to ParserYaml::supportedFile()
ParserYamlTest::testSupportedFile in tests/Drush/Tests/Make/Parser/ParserYamlTest.php
@covers ::supportedFile

File

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

Namespace

Drush\Make\Parser

Class

ParserYaml

Code

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