You are here

public function InvalidExtensionValidatorException::__construct in Mini site 8

InvalidExtensionValidatorException constructor.

Parameters

string $filename: The file name that was validated.

File

src/Exception/InvalidExtensionValidatorException.php, line 20

Class

InvalidExtensionValidatorException
Class InvalidExtensionValidatorException.

Namespace

Drupal\minisite\Exception

Code

public function __construct($filename) {
  parent::__construct(sprintf('File %s has invalid extension.', $filename));
}