You are here

private function WkhtmltopdfController::validateArguments in wkhtmltopdf 2.0.x

Validates the command line arguments are valid

Parameters

array $arguments: An associative array where argument name is the array key, and the argument value is the array value.

1 call to WkhtmltopdfController::validateArguments()
WkhtmltopdfController::getCommandLineArguments in src/Controller/WkhtmltopdfController.php
Gets the command line arguments for the wkhtmltopdf shell command based on the settings

File

src/Controller/WkhtmltopdfController.php, line 226

Class

WkhtmltopdfController
A Controller to generate PDFs and return them as a binary reponse.

Namespace

Drupal\wkhtmltopdf\Controller

Code

private function validateArguments($arguments) {
  foreach ($arguments as $argument_name => $argument_value) {
    $this
      ->validateArgument($argument_name, $argument_value);
  }
}