public static function ParserIni::supportedFile

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

Determine if a given file is supported.

Parameters

string $filename:

Return value

bool

Overrides ParserInterface::supportedFile

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

File

lib/Drush/Make/Parser/ParserIni.php, line 32
Parser for INI format.

Namespace

Drush\Make\Parser

Class

ParserIni

Code

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